You are here

public function KeyPluginManager::processDefinition in Key 8

Performs extra processing on plugin definitions.

By default we add defaults for the type to the definition. If a type has additional processing logic they can do that by replacing or extending the method.

Overrides DefaultPluginManager::processDefinition

File

src/Plugin/KeyPluginManager.php, line 57

Class

KeyPluginManager
Manages Key plugins.

Namespace

Drupal\key\Plugin

Code

public function processDefinition(&$definition, $plugin_id) {
  parent::processDefinition($definition, $plugin_id);

  // Add plugin_type to the definition.
  $definition['plugin_type'] = $this->pluginType;
}