Views argument default plugins

Same name in other branches
  1. 9 core/modules/views/src/Plugin/views/argument_default/ArgumentDefaultPluginBase.php \Drupal\views\Plugin\views\argument_default\views_argument_default_plugins
  2. 8.9.x core/modules/views/src/Plugin/views/argument_default/ArgumentDefaultPluginBase.php \Drupal\views\Plugin\views\argument_default\views_argument_default_plugins
  3. 10 core/modules/views/src/Plugin/views/argument_default/ArgumentDefaultPluginBase.php \Drupal\views\Plugin\views\argument_default\views_argument_default_plugins

Plugins for argument defaults in Views.

Argument default plugins provide default values for contextual filters. This can be useful for blocks and other display types lacking a natural argument input. Examples are plugins to extract node and user IDs from the URL.

Argument default plugins extend \Drupal\views\Plugin\views\argument_default\ArgumentDefaultPluginBase. They must be attributed with \Drupal\views\Attribute\ViewsArgumentDefault attribute, and they must be in namespace directory Plugin\views\argument_default.

See also

Plugin API

Parent topics

File

core/modules/views/src/Plugin/views/argument_default/ArgumentDefaultPluginBase.php, line 9

Classes

Title Sort descending File name Summary
ArgumentDefaultPluginBase core/modules/views/src/Plugin/views/argument_default/ArgumentDefaultPluginBase.php The fixed argument default handler; also used as the base.
Fixed core/modules/views/src/Plugin/views/argument_default/Fixed.php The fixed argument default handler.
QueryParameter core/modules/views/src/Plugin/views/argument_default/QueryParameter.php A query parameter argument default handler.
Raw core/modules/views/src/Plugin/views/argument_default/Raw.php Default argument plugin to use the raw value from the URL.
ViewsArgumentDefault core/modules/views/src/Attribute/ViewsArgumentDefault.php Defines a ViewsArgument attribute for plugin discovery.
ViewsArgumentDefault core/modules/views/src/Annotation/ViewsArgumentDefault.php Defines a Plugin annotation object for views argument default plugins.

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.