generate:plugin:fieldformatter

Générer un plugin de formateur de champ.

Utilisation:

drupal generate:plugin:fieldformatter [options]
  gpff

Options disponibles

Option Détails
--module Le nom du module.
--class Nom de la classe du plugin
--label Label du plugin
--plugin-id Id du plugin
--field-type Type de champ avec lequel le plugin peut être utilisé

Exemples

Generate a a text field formatter plugin specifying the module name, the class, the label its plugin id and the field type

drupal generate:plugin:fieldformatter  \
  --module="modulename"  \
  --class="ExampleFieldFormatter"  \
  --label="Example field formatter"  \
  --plugin-id="example_field_formatter"  \
  --field-type="text"