You are here

public function MenuController::removeExtraData in Menu Item Extras 8.2

Provides removing extra data action.

1 string reference to 'MenuController::removeExtraData'
menu_item_extras.routing.yml in ./menu_item_extras.routing.yml
menu_item_extras.routing.yml

File

src/Controller/MenuController.php, line 68

Class

MenuController
Defines a route controller for a form for menu link content entity creation.

Namespace

Drupal\menu_item_extras\Controller

Code

public function removeExtraData() {
  $this->menuLinkContentHelper
    ->clearMenuData('all');
  $this
    ->messenger()
    ->addStatus($this
    ->t('Extra data for all menus were deleted.'), 'status');
  return $this
    ->redirect('system.modules_uninstall');
}