Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. Tid.php

function Tid::defineOptions

Overrides ArgumentDefaultPluginBase::defineOptions

File

core/modules/taxonomy/src/Plugin/views/argument_default/Tid.php, line 77

Class

Tid
Taxonomy tid default argument.

Namespace

Drupal\taxonomy\Plugin\views\argument_default

Code

protected function defineOptions() {
    $options = parent::defineOptions();
    $options['term_page'] = [
        'default' => TRUE,
    ];
    $options['node'] = [
        'default' => FALSE,
    ];
    $options['anyall'] = [
        'default' => ',',
    ];
    $options['limit'] = [
        'default' => FALSE,
    ];
    $options['vids'] = [
        'default' => [],
    ];
    return $options;
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal