public function RemoveMenuCacheflush::execute in CacheFlush 8
Executes the plugin.
Overrides ExecutableInterface::execute
1 call to RemoveMenuCacheflush::execute()
- RemoveMenuCacheflush::executeMultiple in modules/
cacheflush_ui/ src/ Plugin/ Action/ RemoveMenuCacheflush.php - Executes the plugin for an array of objects.
File
- modules/
cacheflush_ui/ src/ Plugin/ Action/ RemoveMenuCacheflush.php, line 83
Class
- RemoveMenuCacheflush
- Remove menu item.
Namespace
Drupal\cacheflush_ui\Plugin\ActionCode
public function execute($entity = NULL) {
$entity->menu = CacheflushUIConstantsInterface::CACHEFLUSH_NO_MENU;
$entity
->save();
}