You are here

public function YieldToArgumentTrait::defaultExposeOptions in Lightning Core 8

Same name and namespace in other branches
  1. 8.5 src/YieldToArgumentTrait.php \Drupal\lightning_core\YieldToArgumentTrait::defaultExposeOptions()
  2. 8.2 src/YieldToArgumentTrait.php \Drupal\lightning_core\YieldToArgumentTrait::defaultExposeOptions()
  3. 8.3 src/YieldToArgumentTrait.php \Drupal\lightning_core\YieldToArgumentTrait::defaultExposeOptions()
  4. 8.4 src/YieldToArgumentTrait.php \Drupal\lightning_core\YieldToArgumentTrait::defaultExposeOptions()

File

src/YieldToArgumentTrait.php, line 71

Class

YieldToArgumentTrait
Allows exposed an Views filter to disappear if an argument is present.

Namespace

Drupal\lightning_core

Code

public function defaultExposeOptions() {
  parent::defaultExposeOptions();
  $this->options['expose']['argument'] = NULL;
}