You are here

protected function TestWithHiddenSourceField::getSourceFieldName in Drupal 9

Same name and namespace in other branches
  1. 8 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\Source

Code

protected function getSourceFieldName() {
  return 'field_media_hidden';
}