You are here

public function StaticMenuLinkOverrides::deleteOverride in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/lib/Drupal/Core/Menu/StaticMenuLinkOverrides.php \Drupal\Core\Menu\StaticMenuLinkOverrides::deleteOverride()

Deletes any overrides to the definition of a static (YAML-defined) link.

Parameters

string $id: A menu link plugin ID.

Overrides StaticMenuLinkOverridesInterface::deleteOverride

File

core/lib/Drupal/Core/Menu/StaticMenuLinkOverrides.php, line 106
Contains \Drupal\Core\Menu\StaticMenuLinkOverrides.

Class

StaticMenuLinkOverrides
Defines an implementation of the menu link override using a config file.

Namespace

Drupal\Core\Menu

Code

public function deleteOverride($id) {
  return $this
    ->deleteMultipleOverrides(array(
    $id,
  ));
}