You are here

function taxonomy_views_plugins_argument_validator_alter in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 core/modules/taxonomy/taxonomy.views.inc \taxonomy_views_plugins_argument_validator_alter()

Implements hook_views_plugins_argument_validator_alter().

Extend the generic entity argument validator.

See also

\Drupal\views\Plugin\views\argument_validator\Entity

File

core/modules/taxonomy/taxonomy.views.inc, line 81
Provides views data for taxonomy.module.

Code

function taxonomy_views_plugins_argument_validator_alter(array &$plugins) {
  $plugins['entity:taxonomy_term']['title'] = t('Taxonomy term ID');
  $plugins['entity:taxonomy_term']['class'] = 'Drupal\\taxonomy\\Plugin\\views\\argument_validator\\Term';
  $plugins['entity:taxonomy_term']['provider'] = 'taxonomy';
}