Implements Drupal\Component\Plugin\Discovery\DiscoveryInterface::getDefinitions().
Overrides AnnotatedClassDiscovery::getDefinitions
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;
}