public function Test::getPluginDefinition in Drupal 9
Same name and namespace in other branches
- 8 core/modules/media/tests/modules/media_test_source/src/Plugin/media/Source/Test.php \Drupal\media_test_source\Plugin\media\Source\Test::getPluginDefinition()
- 10 core/modules/media/tests/modules/media_test_source/src/Plugin/media/Source/Test.php \Drupal\media_test_source\Plugin\media\Source\Test::getPluginDefinition()
Gets the definition of the plugin implementation.
Return value
array The plugin definition, as returned by the discovery object used by the plugin manager.
Overrides PluginBase::getPluginDefinition
File
- core/
modules/ media/ tests/ modules/ media_test_source/ src/ Plugin/ media/ Source/ Test.php, line 57
Class
- Test
- Provides test media source.
Namespace
Drupal\media_test_source\Plugin\media\SourceCode
public function getPluginDefinition() {
return NestedArray::mergeDeep(parent::getPluginDefinition(), \Drupal::state()
->get('media_source_test_definition', []));
}