You are here

public function StaticDiscovery::deleteDefinition in Drupal 10

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Component/Plugin/Discovery/StaticDiscovery.php \Drupal\Component\Plugin\Discovery\StaticDiscovery::deleteDefinition()
  2. 9 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\Discovery

Code

public function deleteDefinition($plugin) {
  unset($this->definitions[$plugin]);
}