function 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';
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.