/**
* {@inheritdoc}
*/
public function getAlteredRouteNames() { return $this->state->
get('views.view_route_names',
[]);
} /**
* {@inheritdoc}
*/
public function remove() { $menu_links =
$this->
getMenuLinks();
/** @var \Drupal\Core\Menu\MenuLinkManagerInterface $menu_link_manager */
$menu_link_manager = \Drupal::
service('plugin.manager.menu.link'
);
foreach ($menu_links as $menu_link_id =>
$menu_link) { $menu_link_manager->
removeDefinition("views_view:
$menu_link_id"
);
} }}