function PluginBase::getPluginDefinition
Same name and namespace in other branches
- 9 core/lib/Drupal/Component/Plugin/PluginBase.php \Drupal\Component\Plugin\PluginBase::getPluginDefinition()
- 8.9.x core/lib/Drupal/Component/Plugin/PluginBase.php \Drupal\Component\Plugin\PluginBase::getPluginDefinition()
- 10 core/lib/Drupal/Component/Plugin/PluginBase.php \Drupal\Component\Plugin\PluginBase::getPluginDefinition()
Gets the definition of the plugin implementation.
Return value
\Drupal\Component\Plugin\Definition\PluginDefinitionInterface|array The plugin definition, as returned by the discovery object used by the plugin manager.
Overrides PluginInspectionInterface::getPluginDefinition
17 calls to PluginBase::getPluginDefinition()
- Alignment::getElementsSubset in core/
modules/ ckeditor5/ src/ Plugin/ CKEditor5Plugin/ Alignment.php - Returns a configured subset of the elements supported by this plugin.
- EntityResource::getBaseRoute in core/
modules/ rest/ src/ Plugin/ rest/ resource/ EntityResource.php - Gets the base route for a particular method.
- EntityResource::patch in core/
modules/ rest/ src/ Plugin/ rest/ resource/ EntityResource.php - Responds to entity PATCH requests.
- EntityResource::post in core/
modules/ rest/ src/ Plugin/ rest/ resource/ EntityResource.php - Responds to entity POST requests and saves the new entity.
- Heading::enabledHeadingsToTags in core/
modules/ ckeditor5/ src/ Plugin/ CKEditor5Plugin/ Heading.php - Returns an array of enabled tags based on the enabled headings.
2 methods override PluginBase::getPluginDefinition()
- Migration::getPluginDefinition in core/
modules/ migrate/ src/ Plugin/ Migration.php - Gets the definition of the plugin implementation.
- Test::getPluginDefinition in core/
modules/ media/ tests/ modules/ media_test_source/ src/ Plugin/ media/ Source/ Test.php - Gets the definition of the plugin implementation.
File
-
core/
lib/ Drupal/ Component/ Plugin/ PluginBase.php, line 92
Class
- PluginBase
- Base class for plugins wishing to support metadata inspection.
Namespace
Drupal\Component\PluginCode
public function getPluginDefinition() {
return $this->pluginDefinition;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.