function TestWithHiddenSourceField::prepareViewDisplay
Same name in other branches
- 9 core/modules/media/tests/modules/media_test_source/src/Plugin/media/Source/TestWithHiddenSourceField.php \Drupal\media_test_source\Plugin\media\Source\TestWithHiddenSourceField::prepareViewDisplay()
- 8.9.x core/modules/media/tests/modules/media_test_source/src/Plugin/media/Source/TestWithHiddenSourceField.php \Drupal\media_test_source\Plugin\media\Source\TestWithHiddenSourceField::prepareViewDisplay()
- 10 core/modules/media/tests/modules/media_test_source/src/Plugin/media/Source/TestWithHiddenSourceField.php \Drupal\media_test_source\Plugin\media\Source\TestWithHiddenSourceField::prepareViewDisplay()
Overrides MediaSourceBase::prepareViewDisplay
File
-
core/
modules/ media/ tests/ modules/ media_test_source/ src/ Plugin/ media/ Source/ TestWithHiddenSourceField.php, line 27
Class
- TestWithHiddenSourceField
- Provides test media source.
Namespace
Drupal\media_test_source\Plugin\media\SourceCode
public function prepareViewDisplay(MediaTypeInterface $type, EntityViewDisplayInterface $display) {
$display->removeComponent($this->getSourceFieldDefinition($type)
->getName());
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.