taxonomy_views_plugins_argument_validator_alter(array &$plugins)
Implements hook_views_plugins_argument_validator_alter().
Extend the generic entity argument validator.
\Drupal\views\Plugin\views\argument_validator\Entity
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'; }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!modules!taxonomy!taxonomy.views.inc/function/taxonomy_views_plugins_argument_validator_alter/8.1.x