UpdateHookRegistry::FUNC_NAME_REGEXP

Same name in other branches
  1. 11.x core/lib/Drupal/Core/Update/UpdateHookRegistry.php \Drupal\Core\Update\UpdateHookRegistry::FUNC_NAME_REGEXP

Regular expression to match all possible defined hook_update_N().

File

core/lib/Drupal/Core/Update/UpdateHookRegistry.php, line 21

Class

UpdateHookRegistry
Provides module updates versions handling.

Namespace

Drupal\Core\Update

Code

private const FUNC_NAME_REGEXP = '/^(?<module>.+)_update_(?<version>\\d+)$/';

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