/** * 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.'), ], ]; }