WorkflowTypeBase::VALID_ID_REGEX

Same name and namespace in other branches
  1. 9 core/modules/workflows/src/Plugin/WorkflowTypeBase.php \Drupal\workflows\Plugin\WorkflowTypeBase::VALID_ID_REGEX
  2. 10 core/modules/workflows/src/Plugin/WorkflowTypeBase.php \Drupal\workflows\Plugin\WorkflowTypeBase::VALID_ID_REGEX
  3. 11.x core/modules/workflows/src/Plugin/WorkflowTypeBase.php \Drupal\workflows\Plugin\WorkflowTypeBase::VALID_ID_REGEX

A regex for matching a valid state/transition machine name.

File

core/modules/workflows/src/Plugin/WorkflowTypeBase.php, line 26

Class

WorkflowTypeBase
A base class for Workflow type plugins.

Namespace

Drupal\workflows\Plugin

Code

const VALID_ID_REGEX = '/[^a-z0-9_]+/';

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.