public function BrightcoveVideo::getDefaultName in Brightcove Video Connect 8
Same name and namespace in other branches
- 8.2 modules/media_entity_brightcove/src/Plugin/MediaEntity/Type/BrightcoveVideo.php \Drupal\media_entity_brightcove\Plugin\MediaEntity\Type\BrightcoveVideo::getDefaultName()
- 3.x modules/media_entity_brightcove/src/Plugin/MediaEntity/Type/BrightcoveVideo.php \Drupal\media_entity_brightcove\Plugin\MediaEntity\Type\BrightcoveVideo::getDefaultName()
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.
Overrides MediaTypeBase::getDefaultName
File
- modules/
media_entity_brightcove/ src/ Plugin/ MediaEntity/ Type/ BrightcoveVideo.php, line 171
Class
- BrightcoveVideo
- Defines video field type for media.
Namespace
Drupal\media_entity_brightcove\Plugin\MediaEntity\TypeCode
public function getDefaultName(MediaInterface $media) {
return $this
->getField($media, 'name');
}