function MediaInterface::setName
Same name in other branches
- 8.9.x core/modules/media/src/MediaInterface.php \Drupal\media\MediaInterface::setName()
- 10 core/modules/media/src/MediaInterface.php \Drupal\media\MediaInterface::setName()
- 11.x core/modules/media/src/MediaInterface.php \Drupal\media\MediaInterface::setName()
Sets the media item name.
Parameters
string $name: The name of the media item.
Return value
$this
1 method overrides MediaInterface::setName()
- Media::setName in core/
modules/ media/ src/ Entity/ Media.php - Sets the media item name.
File
-
core/
modules/ media/ src/ MediaInterface.php, line 32
Class
- MediaInterface
- Provides an interface defining an entity for media items.
Namespace
Drupal\mediaCode
public function setName($name);
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.