function MenuLinkManagerInterface::resetLink
Same name in other branches
- 8.9.x core/lib/Drupal/Core/Menu/MenuLinkManagerInterface.php \Drupal\Core\Menu\MenuLinkManagerInterface::resetLink()
- 10 core/lib/Drupal/Core/Menu/MenuLinkManagerInterface.php \Drupal\Core\Menu\MenuLinkManagerInterface::resetLink()
- 11.x core/lib/Drupal/Core/Menu/MenuLinkManagerInterface.php \Drupal\Core\Menu\MenuLinkManagerInterface::resetLink()
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.
1 method overrides MenuLinkManagerInterface::resetLink()
- MenuLinkManager::resetLink in core/
lib/ Drupal/ Core/ Menu/ MenuLinkManager.php - Resets the values for a menu link based on the values found by discovery.
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\MenuCode
public function resetLink($id);
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.