MenuLinkManagerInterface::resetLink

public MenuLinkManagerInterface::resetLink($id)

Resets the values for a menu link based on the values found by discovery.

Parameters

string $id: The menu link plugin ID.

Return value

\Drupal\Core\Menu\MenuLinkInterface The menu link instance after being reset.

Throws

\Drupal\Component\Plugin\Exception\PluginException Thrown if the $id is not a valid, existing, plugin ID or if the link cannot be reset.

File

core/lib/Drupal/Core/Menu/MenuLinkManagerInterface.php, line 134

Class

MenuLinkManagerInterface
Defines an interface for managing menu links and storing their definitions.

Namespace

Drupal\Core\Menu

Code

public function resetLink($id);
doc_Drupal
2016-10-29 09:27:11
Comments
Leave a Comment

Please login to continue.