public function Test::getPluginDefinition in Drupal 10
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()
- 9 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', []));
}