You are here

constant DRUPAL_PHP_FUNCTION_PATTERN in Drupal 8

Same name and namespace in other branches
  1. 7 includes/bootstrap.inc \DRUPAL_PHP_FUNCTION_PATTERN

Regular expression to match PHP function names.

Deprecated

in drupal:8.8.0 and is removed from drupal:9.0.0. Use \Drupal\Core\Extension\ExtensionDiscovery::PHP_FUNCTION_PATTERN instead.

See also

https://www.drupal.org/node/2936107

http://php.net/manual/language.functions.php

File

core/includes/bootstrap.inc, line 150
Functions that need to be loaded on every Drupal request.

Code

const DRUPAL_PHP_FUNCTION_PATTERN = '[a-zA-Z_\\x7f-\\xff][a-zA-Z0-9_\\x7f-\\xff]*';