You are here

public function MenuLinkContentServiceInterface::updateMenuItemBundle in Menu Item Extras 8.2

Update menu link item.

Parameters

\Drupal\menu_link_content\MenuLinkContentInterface $item: Menu item that required to be updated.

bool $extras_enabled: Flag of enabled functionality.

bool $save: Flag of saving after update.

1 method overrides MenuLinkContentServiceInterface::updateMenuItemBundle()
MenuLinkContentService::updateMenuItemBundle in src/Service/MenuLinkContentService.php
Update menu link item.

File

src/Service/MenuLinkContentServiceInterface.php, line 38

Class

MenuLinkContentServiceInterface
Interface MenuLinkContentHelperInterface.

Namespace

Drupal\menu_item_extras\Service

Code

public function updateMenuItemBundle(MenuLinkContentInterface $item, $extras_enabled = TRUE, $save = FALSE);