function StaticDiscovery::deleteDefinition
Same name in other branches
- 9 core/lib/Drupal/Component/Plugin/Discovery/StaticDiscovery.php \Drupal\Component\Plugin\Discovery\StaticDiscovery::deleteDefinition()
- 10 core/lib/Drupal/Component/Plugin/Discovery/StaticDiscovery.php \Drupal\Component\Plugin\Discovery\StaticDiscovery::deleteDefinition()
- 11.x core/lib/Drupal/Component/Plugin/Discovery/StaticDiscovery.php \Drupal\Component\Plugin\Discovery\StaticDiscovery::deleteDefinition()
Deletes a plugin definition.
File
-
core/
lib/ Drupal/ Component/ Plugin/ Discovery/ StaticDiscovery.php, line 33
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]);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.