8.5.x PluginBase.php PluginBase::getPluginDefinition()
8.0.x PluginBase.php PluginBase::getPluginDefinition()
8.1.x PluginBase.php PluginBase::getPluginDefinition()
8.2.x PluginBase.php PluginBase::getPluginDefinition()
8.3.x PluginBase.php PluginBase::getPluginDefinition()
8.4.x PluginBase.php PluginBase::getPluginDefinition()
8.6.x PluginBase.php 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

20 calls to PluginBase::getPluginDefinition()
BlockBase::buildConfigurationForm in core/lib/Drupal/Core/Block/BlockBase.php
Creates a generic configuration form for all block types. Individual block plugins can add elements to this form by overriding BlockBase::blockForm(). Most block plugins should not override this method unless they need to alter the generic form elements.
BlockBase::getMachineNameSuggestion in core/lib/Drupal/Core/Block/BlockBase.php
Suggests a machine name to identify an instance of this block.
BlockBase::label in core/lib/Drupal/Core/Block/BlockBase.php
Returns the user-facing block label.
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.

... 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 92

Class

PluginBase
Base class for plugins wishing to support metadata inspection.

Namespace

Drupal\Component\Plugin

Code

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