function hook_views_plugins_argument_validator_alter in Drupal 8
Same name and namespace in other branches
- 9 core/modules/views/views.api.php \hook_views_plugins_argument_validator_alter()
Modify the list of available views argument validation plugins.
This hook may be used to modify plugin properties after they have been specified by other modules.
Parameters
array $plugins: An array of all the existing plugin definitions, passed by reference.
See also
\Drupal\views\Plugin\ViewsPluginManager
Related topics
2 functions implement hook_views_plugins_argument_validator_alter()
Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.
- taxonomy_views_plugins_argument_validator_alter in core/
modules/ taxonomy/ taxonomy.views.inc - Implements hook_views_plugins_argument_validator_alter().
- user_views_plugins_argument_validator_alter in core/
modules/ user/ user.views.inc - Implements hook_views_plugins_argument_validator_alter().
File
- core/
modules/ views/ views.api.php, line 981 - Describes hooks and plugins provided by the Views module.
Code
function hook_views_plugins_argument_validator_alter(array &$plugins) {
// Remove the available plugin because the users should not have access to it.
unset($plugins['php']);
}