Views argument default plugins
Same name in other branches
- 9 core/modules/views/src/Plugin/views/argument_default/ArgumentDefaultPluginBase.php \Drupal\views\Plugin\views\argument_default\views_argument_default_plugins
- 8.9.x core/modules/views/src/Plugin/views/argument_default/ArgumentDefaultPluginBase.php \Drupal\views\Plugin\views\argument_default\views_argument_default_plugins
- 11.x 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
Parent topics
File
-
core/
modules/ views/ src/ Plugin/ views/ argument_default/ ArgumentDefaultPluginBase.php, line 9
Classes
Title Sort descending | File name | Summary |
---|---|---|
ArgumentDefaultPluginBase | core/ |
The fixed argument default handler; also used as the base. |
Fixed | core/ |
The fixed argument default handler. |
QueryParameter | core/ |
A query parameter argument default handler. |
Raw | core/ |
Default argument plugin to use the raw value from the URL. |
ViewsArgumentDefault | core/ |
Defines a ViewsArgument attribute for plugin discovery. |
ViewsArgumentDefault | core/ |
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.