protected function TestWithHiddenSourceField::getSourceFieldName in Drupal 10
Same name and namespace in other branches
- 8 core/modules/media/tests/modules/media_test_source/src/Plugin/media/Source/TestWithHiddenSourceField.php \Drupal\media_test_source\Plugin\media\Source\TestWithHiddenSourceField::getSourceFieldName()
- 9 core/modules/media/tests/modules/media_test_source/src/Plugin/media/Source/TestWithHiddenSourceField.php \Drupal\media_test_source\Plugin\media\Source\TestWithHiddenSourceField::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/ TestWithHiddenSourceField.php, line 38
Class
- TestWithHiddenSourceField
- Provides test media source.
Namespace
Drupal\media_test_source\Plugin\media\SourceCode
protected function getSourceFieldName() {
return 'field_media_hidden';
}