You are here

protected function ConfigurationUpdateGenerator::getUpdateFunctionName in Update helper 8

Same name in this branch
  1. 8 src/Generator/ConfigurationUpdateGenerator.php \Drupal\update_helper\Generator\ConfigurationUpdateGenerator::getUpdateFunctionName()
  2. 8 modules/update_helper_checklist/src/Generator/ConfigurationUpdateGenerator.php \Drupal\update_helper_checklist\Generator\ConfigurationUpdateGenerator::getUpdateFunctionName()

Get update hook function name.

Parameters

string $module_name: Module name.

string $update_number: Update number.

Return value

string Returns update hook function name.

File

modules/update_helper_checklist/src/Generator/ConfigurationUpdateGenerator.php, line 54

Class

ConfigurationUpdateGenerator
Update hook generator for generate:configuration:update console command.

Namespace

Drupal\update_helper_checklist\Generator

Code

protected function getUpdateFunctionName($module_name, $update_number) {
  return $module_name . '_update_' . $update_number;
}