v1/vendor/chi-teck/drupal-code-generator/templates/hook/updater_info.twig

18 lines
363 B
Twig

/**
* Implements hook_updater_info().
*/
function {{ machine_name }}_updater_info() {
return [
'module' => [
'class' => 'Drupal\Core\Updater\Module',
'name' => t('Update modules'),
'weight' => 0,
],
'theme' => [
'class' => 'Drupal\Core\Updater\Theme',
'name' => t('Update themes'),
'weight' => 0,
],
];
}