2 * Implements hook_system_info_alter().
4 function {{ machine_name }}_system_info_alter(array &$info, \Drupal\Core\Extension\Extension $file, $type) {
5 // Only fill this in if the .info.yml file does not define a 'datestamp'.
6 if (empty($info['datestamp'])) {
7 $info['datestamp'] = $file->getMTime();