protected function TestDifferentDisplays::getSourceFieldName in Drupal 10
Same name and namespace in other branches
- 8 core/modules/media/tests/modules/media_test_source/src/Plugin/media/Source/TestDifferentDisplays.php \Drupal\media_test_source\Plugin\media\Source\TestDifferentDisplays::getSourceFieldName()
- 9 core/modules/media/tests/modules/media_test_source/src/Plugin/media/Source/TestDifferentDisplays.php \Drupal\media_test_source\Plugin\media\Source\TestDifferentDisplays::getSourceFieldName()
Determine the name of the source field.
Return value
string The source field name. If one is already stored in configuration, it is returned. Otherwise, a new, unused one is generated.
Overrides MediaSourceBase::getSourceFieldName
File
- core/
modules/ media/ tests/ modules/ media_test_source/ src/ Plugin/ media/ Source/ TestDifferentDisplays.php, line 46
Class
- TestDifferentDisplays
- Provides test media source.
Namespace
Drupal\media_test_source\Plugin\media\SourceCode
protected function getSourceFieldName() {
return 'field_media_different_display';
}