protected function YieldToArgumentTrait::defineOptions in Lightning Core 8
Same name and namespace in other branches
- 8.5 src/YieldToArgumentTrait.php \Drupal\lightning_core\YieldToArgumentTrait::defineOptions()
- 8.2 src/YieldToArgumentTrait.php \Drupal\lightning_core\YieldToArgumentTrait::defineOptions()
- 8.3 src/YieldToArgumentTrait.php \Drupal\lightning_core\YieldToArgumentTrait::defineOptions()
- 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_coreCode
protected function defineOptions() {
$options = parent::defineOptions();
$options['expose']['contains']['argument']['default'] = NULL;
return $options;
}