public function MediaTypeInterface::getDefaultName in Media entity 8
Provide a default name for the media.
Plugins defining media bundles are suggested to override this method and provide a default name, to be used when there is no user-defined label available.
Parameters
\Drupal\media_entity\MediaInterface $media: The media object.
Return value
string The string that should be used as default media name.
1 method overrides MediaTypeInterface::getDefaultName()
- MediaTypeBase::getDefaultName in src/
MediaTypeBase.php - Provide a default name for the media.
File
- src/
MediaTypeInterface.php, line 86
Class
- MediaTypeInterface
- Defines the interface for media types.
Namespace
Drupal\media_entityCode
public function getDefaultName(MediaInterface $media);