diff --git a/core/modules/action/src/Form/ActionFormBase.php b/core/modules/action/src/Form/ActionFormBase.php index b73ca4c..84bff12 100644 --- a/core/modules/action/src/Form/ActionFormBase.php +++ b/core/modules/action/src/Form/ActionFormBase.php @@ -63,9 +63,10 @@ public function form(array $form, FormStateInterface $form_state) { '#default_value' => $this->entity->id(), '#disabled' => !$this->entity->isNew(), '#maxlength' => 64, - '#description' => $this->t('A unique name for this action. It must only contain lowercase letters, numbers and underscores.'), + '#description' => $this->t('A unique name for this action. It must only contain lowercase letters, numbers, underscores, dots and hyphens.'), '#machine_name' => [ 'exists' => [$this, 'exists'], + 'replace_pattern' => '[^a-z0-9_.-]+', ], ]; $form['plugin'] = [