You are here

constant FormModesSubscriber::ROUTE_PATH_CONTEXT_REGEX in Form mode manager 8.2

Same name and namespace in other branches
  1. 8 src/Routing/EventSubscriber/FormModesSubscriber.php \Drupal\form_mode_manager\Routing\EventSubscriber\FormModesSubscriber::ROUTE_PATH_CONTEXT_REGEX

The Regex pattern to contextualize process by route path.

File

src/Routing/EventSubscriber/FormModesSubscriber.php, line 34

Class

FormModesSubscriber
Listens to the dynamic route event and add routes using form modes.

Namespace

Drupal\form_mode_manager\Routing\EventSubscriber

Code

const ROUTE_PATH_CONTEXT_REGEX = '/(^.*?\\/edit)|(^.*?\\/{block_content})/';