public function StaticDiscovery::deleteDefinition in Service Container 7.2
Same name and namespace in other branches
- 7 lib/Drupal/Component/Plugin/Discovery/StaticDiscovery.php \Drupal\Component\Plugin\Discovery\StaticDiscovery::deleteDefinition()
Deletes a plugin definition.
File
- lib/
Drupal/ Component/ Plugin/ Discovery/ StaticDiscovery.php, line 38 - 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\DiscoveryCode
public function deleteDefinition($plugin) {
unset($this->definitions[$plugin]);
}