You are here

public function StaticDiscovery::setDefinition in Plug 7

Sets a plugin definition.

File

lib/Drupal/Component/Plugin/Discovery/StaticDiscovery.php, line 31
Contains \Drupal\Component\Plugin\Discovery\StaticDiscovery.

Class

StaticDiscovery
A discovery mechanism that allows plugin definitions to be manually registered rather than actively discovered.

Namespace

Drupal\Component\Plugin\Discovery

Code

public function setDefinition($plugin, $definition) {
  $this->definitions[$plugin] = $definition;
}