You are here

protected function YieldToArgumentTrait::defineOptions in Lightning Core 8

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

File

src/YieldToArgumentTrait.php, line 61

Class

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

Namespace

Drupal\lightning_core

Code

protected function defineOptions() {
  $options = parent::defineOptions();
  $options['expose']['contains']['argument']['default'] = NULL;
  return $options;
}