public function MenuController::removeExtraData in Menu Item Extras 8.2
Provides removing extra data action.
1 string reference to 'MenuController::removeExtraData'
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\ControllerCode
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');
}