function hook_views_plugins_argument_default_alter

Modify the list of available views default argument 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

File

drupal/core/modules/views/views.api.php, line 639
Describes hooks and plugins provided by the Views module.

Code

function hook_views_plugins_argument_default_alter(array &$plugins) {

  // Remove the available plugin because the users should not have access to it.
  unset($plugins['php']);
}