registration_link.module in Registration Link 8
Same filename and directory in other branches
File
registration_link.moduleView source
<?php
use Drupal\Core\Menu\MenuLinkTree;
use Drupal\Core\Menu\MenuLinkManager;
function registration_link_uninstall() {
// delete the links, that this module has created
$menuLinkManager = \Drupal::service('plugin.manager.menu.link');
$result = $menuLinkManager
->loadLinksByRoute('registration_link.register', array());
foreach ($result as $link) {
// TODO: check for link id
$link
->deleteLink();
}
}
Functions
Name | Description |
---|---|
registration_link_uninstall |