public function ViewsHandlerDiscovery::getDefinitions

Implements Drupal\Component\Plugin\Discovery\DiscoveryInterface::getDefinitions().

Overrides AnnotatedClassDiscovery::getDefinitions

File

drupal/core/modules/views/lib/Drupal/views/Plugin/Discovery/ViewsHandlerDiscovery.php, line 57
Contains \Drupal\views\Plugin\Discovery\ViewsHandlerDiscovery.

Class

ViewsHandlerDiscovery
Defines a discovery mechanism to find Views handlers in PSR-0 namespaces.

Namespace

Drupal\views\Plugin\Discovery

Code

public function getDefinitions() {

  // Add the plugin_type to the definition.
  $definitions = parent::getDefinitions();
  foreach ($definitions as $key => $definition) {
    $definitions[$key]['plugin_type'] = $this->type;
  }
  return $definitions;
}