You are here

protected function TestDifferentDisplays::getSourceFieldName in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/media/tests/modules/media_test_source/src/Plugin/media/Source/TestDifferentDisplays.php \Drupal\media_test_source\Plugin\media\Source\TestDifferentDisplays::getSourceFieldName()
  2. 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\Source

Code

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