public function MenuTreeStorage::delete in Colossal Menu 8
Same name and namespace in other branches
- 2.x src/Menu/MenuTreeStorage.php \Drupal\colossal_menu\Menu\MenuTreeStorage::delete()
Deletes a menu link definition from the storage.
Parameters
string $id: The menu link plugin ID.
Overrides MenuTreeStorageInterface::delete
File
- src/
Menu/ MenuTreeStorage.php, line 141
Class
- MenuTreeStorage
- Provides a menu tree storage using the database.
Namespace
Drupal\colossal_menu\MenuCode
public function delete($id) {
return $this->storage
->delete($this->storage
->load($id));
}