function StaticDiscovery::deleteDefinition

Same name in other branches
  1. 9 core/lib/Drupal/Component/Plugin/Discovery/StaticDiscovery.php \Drupal\Component\Plugin\Discovery\StaticDiscovery::deleteDefinition()
  2. 8.9.x core/lib/Drupal/Component/Plugin/Discovery/StaticDiscovery.php \Drupal\Component\Plugin\Discovery\StaticDiscovery::deleteDefinition()
  3. 10 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 32

Class

StaticDiscovery
Allows plugin definitions to be manually registered.

Namespace

Drupal\Component\Plugin\Discovery

Code

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.