annotate vendor/chi-teck/drupal-code-generator/templates/d8/plugin-manager/hook/model.module.twig @ 4:a9cd425dd02b

Update, including to Drupal core 8.6.10
author Chris Cannam
date Thu, 28 Feb 2019 13:11:55 +0000
parents
children
rev   line source
Chris@4 1 /**
Chris@4 2 * Implements hook_{{ plugin_type }}_info().
Chris@4 3 */
Chris@4 4 function {{ machine_name }}_{{ plugin_type }}_info() {
Chris@4 5 return [
Chris@4 6 'foo' => [
Chris@4 7 'id' => 'foo',
Chris@4 8 'label' => t('Foo'),
Chris@4 9 'description' => t('Foo description.'),
Chris@4 10 ],
Chris@4 11 'bar' => [
Chris@4 12 'id' => 'bar',
Chris@4 13 'label' => t('Bar'),
Chris@4 14 'description' => t('Bar description.'),
Chris@4 15 ],
Chris@4 16 ];
Chris@4 17 }