public function UpdateAction::execute in Pathauto 8
Executes the plugin.
Overrides ExecutableInterface::execute
File
- src/
Plugin/ Action/ UpdateAction.php, line 23
Class
- UpdateAction
- Pathauto entity update action.
Namespace
Drupal\pathauto\Plugin\ActionCode
public function execute($entity = NULL) {
$entity->path->pathauto = PathautoState::CREATE;
\Drupal::service('pathauto.generator')
->updateEntityAlias($entity, 'bulkupdate', [
'message' => TRUE,
]);
}