function PluginManagerBase::getDefinition

Same name in other branches
  1. 9 core/lib/Drupal/Component/Plugin/PluginManagerBase.php \Drupal\Component\Plugin\PluginManagerBase::getDefinition()
  2. 8.9.x core/lib/Drupal/Component/Plugin/PluginManagerBase.php \Drupal\Component\Plugin\PluginManagerBase::getDefinition()
  3. 10 core/lib/Drupal/Component/Plugin/PluginManagerBase.php \Drupal\Component\Plugin\PluginManagerBase::getDefinition()

Overrides DiscoveryTrait::getDefinition

File

core/lib/Drupal/Component/Plugin/PluginManagerBase.php, line 57

Class

PluginManagerBase
Base class for plugin managers.

Namespace

Drupal\Component\Plugin

Code

public function getDefinition($plugin_id, $exception_on_invalid = TRUE) {
    return $this->getDiscovery()
        ->getDefinition($plugin_id, $exception_on_invalid);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.