generate:plugin:views:field

Generate a custom plugin view field.

Usage:

drupal generate:plugin:views:field [options]
gpvf

Available options

Option Details
--module The Module name.
--class Views plugin field class name
--title Views plugin field title
--description Views plugin field description

Examples

  • Generate a custom view field plugin specifying the module name, the class, a title and its description
    drupal generate:plugin:views:field  \
    --module="modulename"  \
    --class="CustomViewsField"  \
    --title="Custom views field"  \
    --description="My awesome custom views field plugin."