How to extend ArgumentPluginBase and have it recognized by Views? I'm wanting to create a Views argument plugin that extends ArgumentPluginBase in order to overrides one of the form elements in the buildOptionsForm(). I've pasted my plugin below. However, it doesn't seem to be recognized by Views. How do I make Views aware of this plugin and to make use of it?

&lt;?php

namespace Drupal\my_custom_taxonomy_validation\Plugin\views\argument;

use Drupal\views\Plugin\views\argument\ArgumentPluginBase;
use Drupal\Core\Form\FormStateInterface;

/**
 * Resize the override text field.
 *
 * @ingroup views_argument_handlers
 *
 * @ViewsArgument("my_custom_taxonomy_validation_argument")
 *
 */
class MyCustomTaxonomyValidationArgument extends ArgumentPluginBase {

  public function buildOptionsForm(&amp;$form, FormStateInterface $form_state) {
    parent::buildOptionsForm($form, $form_state);

    $form['title'] = [
      '#maxlength' =&gt; 355,
    ];

   }

}
register it with hook_views_data_alter() in mymodule.views.inc

Something like this:

/**
 * Implements hook_views_data_alter().
 */
function mymodule_views_data_alter(&amp;$data) {

  $data['node_field_data']['my_custom_taxonomy_validation_argument'] = [
    'help' =&gt; t('Hello world'),
    'real field' =&gt; 'title',
    'argument' =&gt; [
      'title' =&gt; t('Hello world'),
      'id' =&gt; 'my_custom_taxonomy_validation_argument',
      'accept depth modifier' =&gt; TRUE,
    ],
    'filter' =&gt; [
      'title' =&gt; t('title'),
      'id' =&gt; 'my_custom_taxonomy_validation_argument',
    ],
  ];


}