protected function ModuleCommands::getModuleFromPostUpdateHookName in Helper 8
Extract the module name from a post-update hook.
Parameters
string $hook: The post-update hook name.
Return value
string The module name.
1 call to ModuleCommands::getModuleFromPostUpdateHookName()
- ModuleCommands::interactResetPostUpdate in src/
Commands/ ModuleCommands.php - Interaction hook for the module:post-update:reset command.
File
- src/
Commands/ ModuleCommands.php, line 237
Class
- ModuleCommands
- Drush commands for working with module schemas.
Namespace
Drupal\helper\CommandsCode
protected function getModuleFromPostUpdateHookName($hook) {
return preg_replace('/\\_post\\_update\\_.*$/', '', $hook);
}