public MenuLinkManager::resetLink($id)
Resets the values for a menu link based on the values found by discovery.
string $id: The menu link plugin ID.
\Drupal\Core\Menu\MenuLinkInterface The menu link instance after being reset.
\Drupal\Component\Plugin\Exception\PluginException Thrown if the $id is not a valid, existing, plugin ID or if the link cannot be reset.
Overrides MenuLinkManagerInterface::resetLink
public function resetLink($id) { $instance = $this->createInstance($id); $new_instance = $this->resetInstance($instance); return $new_instance; }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Menu!MenuLinkManager.php/function/MenuLinkManager::resetLink/8.1.x