description: 'Displays all plugin types.'
help: |
Display all plugin types, plugin instances of a specific type, or the definition for a specific plugin.
List all plugin types:
drupal debug:plugin
List all instances of the image effect plugin type:
drupal debug:plugin image.effect
Show the definition for the image convert plugin:
drupal debug:plugin image.effect image_convert
NOTE: Only plugin types exposed through services are supported. When developing a custom plugin type, expose it as a service by adding it to modulename.services.yml with the name "plugin.manager.PLUGIN_TYPE".
arguments:
type: 'Plugin type'
id: 'Plugin ID'
errors:
plugin-type-not-found: 'Plugin type "%s" not found. No service available for that type.'
messages:
plugin-info: 'Plugin additional information'
table-headers:
plugin-type-name: 'Plugin type'
plugin-type-class: 'Plugin manager class'
plugin-id: 'Plugin ID'
plugin-class: 'Plugin class'
definition-key: 'Key'
definition-value: 'Value'
setting: 'Setting'
examples:
- description: 'Displays a list with all the plugins on the current site'
execution: |
drupal debug:plugin
- description: 'Displays block plugin information'
execution: |
drupal debug:plugin block
- description: 'Displays block broken information'
execution: |
drupal debug:plugin block broken