update($sandbox, 'action', function (ActionConfigEntityInterface $action) use ($resave_ids) { // Save entity to recalculate dependencies. return $action->isConfigurable() && in_array($action->getPlugin()->getPluginId(), $resave_ids, TRUE); }); } /** * Removes action settings. */ function action_post_update_remove_settings() { \Drupal::configFactory()->getEditable('action.settings')->delete(); }