public function TaxonomyMenu::delete in Zircon Profile 8.0
Same name and namespace in other branches
- 8 modules/taxonomy_menu/src/Entity/TaxonomyMenu.php \Drupal\taxonomy_menu\Entity\TaxonomyMenu::delete()
Deletes an entity permanently.
Throws
\Drupal\Core\Entity\EntityStorageException In case of failures an exception is thrown.
Overrides Entity::delete
File
- modules/
taxonomy_menu/ src/ Entity/ TaxonomyMenu.php, line 117 - Contains Drupal\taxonomy_menu\Entity\TaxonomyMenu.
Class
- TaxonomyMenu
- Defines the TaxonomyMenu entity.
Namespace
Drupal\taxonomy_menu\EntityCode
public function delete() {
foreach (array_keys($this
->getLinks([], TRUE)) as $link_key) {
$this
->getMenuLinkManager()
->removeDefinition($link_key, FALSE);
}
parent::delete();
}