public function PluginBase::getDefinition

Implements Drupal\Component\Plugin\PluginInterface::getDefinition().

Overrides PluginInspectionInterface::getDefinition

19 calls to PluginBase::getDefinition()
EntityResource::delete in drupal/core/modules/rest/lib/Drupal/rest/Plugin/rest/resource/EntityResource.php
Responds to entity DELETE requests.
EntityResource::get in drupal/core/modules/rest/lib/Drupal/rest/Plugin/rest/resource/EntityResource.php
Responds to entity GET requests.
LegacyFormatter::prepareView in drupal/core/modules/field/lib/Drupal/field/Plugin/field/formatter/LegacyFormatter.php
Implements Drupal\field\Plugin\Type\Formatter\FormatterInterface::prepareView().
LegacyFormatter::settingsForm in drupal/core/modules/field/lib/Drupal/field/Plugin/field/formatter/LegacyFormatter.php
Implements Drupal\field\Plugin\Type\Formatter\FormatterInterface::settingsForm().
LegacyFormatter::settingsSummary in drupal/core/modules/field/lib/Drupal/field/Plugin/field/formatter/LegacyFormatter.php
Implements Drupal\field\Plugin\Type\Formatter\FormatterInterface::settingsSummary().

... See full list

File

drupal/core/lib/Drupal/Component/Plugin/PluginBase.php, line 64
Definition of Drupal\Component\Plugin\PluginBase

Class

PluginBase
Base class for plugins wishing to support metadata inspection.

Namespace

Drupal\Component\Plugin

Code

public function getDefinition() {
  return $this->discovery
    ->getDefinition($this->plugin_id);
}