You are here

public function PluginBase::getPluginDefinition in Drupal 8

Same name and namespace in other branches
  1. 9 core/lib/Drupal/Component/Plugin/PluginBase.php \Drupal\Component\Plugin\PluginBase::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 PluginInspectionInterface::getPluginDefinition

24 calls to PluginBase::getPluginDefinition()
ContextAwarePluginBase::getContextDefinition in core/lib/Drupal/Component/Plugin/ContextAwarePluginBase.php
Gets a specific context definition of the plugin.
ContextAwarePluginBase::getContextDefinitions in core/lib/Drupal/Component/Plugin/ContextAwarePluginBase.php
Gets the context definitions of the plugin.
DefaultProcessor::buildConfigurationForm in core/modules/aggregator/src/Plugin/aggregator/processor/DefaultProcessor.php
Form constructor.
DefaultsSectionStorage::buildRoutes in core/modules/layout_builder/src/Plugin/SectionStorage/DefaultsSectionStorage.php
Provides the routes needed for Layout Builder UI.
EntityResource::getBaseRoute in core/modules/rest/src/Plugin/rest/resource/EntityResource.php
Gets the base route for a particular method.

... See full list

3 methods override PluginBase::getPluginDefinition()
LayoutDefault::getPluginDefinition in core/lib/Drupal/Core/Layout/LayoutDefault.php
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 96

Class

PluginBase
Base class for plugins wishing to support metadata inspection.

Namespace

Drupal\Component\Plugin

Code

public function getPluginDefinition() {
  return $this->pluginDefinition;
}