You are here

function taxonomy_machine_name_views_plugins_argument_validator_alter in Taxonomy Machine Name 8

Implements hook_views_plugins_argument_validator_alter().

File

./taxonomy_machine_name.views.inc, line 11
Provide views data.

Code

function taxonomy_machine_name_views_plugins_argument_validator_alter(array &$plugins) {
  $plugins['taxonomy_term_machine_name'] = [
    'parent' => 'parent',
    'plugin_type' => 'argument_validator',
    'register_theme' => TRUE,
    'title' => t('Taxonomy term machine name'),
    'short_title' => '',
    'id' => 'taxonomy_term_machine_name',
    'entity_type' => 'taxonomy_term',
    'class' => 'Drupal\\taxonomy_machine_name\\Plugin\\views\\argument_validator\\TermMachineName',
    'provider' => 'taxonomy_machine_name',
  ];
}