generate:plugin:type:annotation

Génère un type de plugin avec des annotations (mécanisme de découverte)

Utilisation:

drupal generate:plugin:type:annotation [options]
  gpta

Options disponibles

Option Détails
--module Le nom du module.
--class Nom de la classe du type de plugin
--machine-name commands.generate.plugin.type.annotation.options.plugin-id
--label Label du type de plugin

Exemples

Generate a plugin with annotation discovery specifying module name, class name, machine name and label

drupal generate:plugin:type:annotation  \
  --module="modulename"  \
  --class="ExamplePlugin"  \
  --machine-name="example_plugin"  \
  --label="Example plugin"