view vendor/chi-teck/drupal-code-generator/templates/d8/plugin-manager/hook/model.module.twig @ 5:12f9dff5fda9 tip

Update to Drupal core 8.7.1
author Chris Cannam
date Thu, 09 May 2019 15:34:47 +0100
parents a9cd425dd02b
children
line wrap: on
line source
/**
 * Implements hook_{{ plugin_type }}_info().
 */
function {{ machine_name }}_{{ plugin_type }}_info() {
  return [
    'foo' => [
      'id' => 'foo',
      'label' => t('Foo'),
      'description' => t('Foo description.'),
    ],
    'bar' => [
      'id' => 'bar',
      'label' => t('Bar'),
      'description' => t('Bar description.'),
    ],
  ];
}