ExtensionDiscovery::PHP_FUNCTION_PATTERN

Same name in other branches
  1. 9 core/lib/Drupal/Core/Extension/ExtensionDiscovery.php \Drupal\Core\Extension\ExtensionDiscovery::PHP_FUNCTION_PATTERN
  2. 8.9.x core/lib/Drupal/Core/Extension/ExtensionDiscovery.php \Drupal\Core\Extension\ExtensionDiscovery::PHP_FUNCTION_PATTERN
  3. 10 core/lib/Drupal/Core/Extension/ExtensionDiscovery.php \Drupal\Core\Extension\ExtensionDiscovery::PHP_FUNCTION_PATTERN

Regular expression to match PHP function names.

See also

http://php.net/manual/functions.user-defined.php

File

core/lib/Drupal/Core/Extension/ExtensionDiscovery.php, line 57

Class

ExtensionDiscovery
Discovers available extensions in the filesystem.

Namespace

Drupal\Core\Extension

Code

const PHP_FUNCTION_PATTERN = '/^[a-zA-Z_\\x80-\\xff][a-zA-Z0-9_\\x80-\\xff]*$/';

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