function VideoFile::prepareViewDisplay
Same name in other branches
- 9 core/modules/media/src/Plugin/media/Source/VideoFile.php \Drupal\media\Plugin\media\Source\VideoFile::prepareViewDisplay()
- 8.9.x core/modules/media/src/Plugin/media/Source/VideoFile.php \Drupal\media\Plugin\media\Source\VideoFile::prepareViewDisplay()
- 10 core/modules/media/src/Plugin/media/Source/VideoFile.php \Drupal\media\Plugin\media\Source\VideoFile::prepareViewDisplay()
Overrides MediaSourceBase::prepareViewDisplay
File
-
core/
modules/ media/ src/ Plugin/ media/ Source/ VideoFile.php, line 34
Class
- VideoFile
- Media source wrapping around a video file.
Namespace
Drupal\media\Plugin\media\SourceCode
public function prepareViewDisplay(MediaTypeInterface $type, EntityViewDisplayInterface $display) {
$display->setComponent($this->getSourceFieldDefinition($type)
->getName(), [
'type' => 'file_video',
'label' => 'visually_hidden',
]);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.