public function Frequency::init in Smart Date 3.2.x
Same name and namespace in other branches
- 3.0.x modules/smart_date_recur/src/Plugin/views/filter/Frequency.php \Drupal\smart_date_recur\Plugin\views\filter\Frequency::init()
- 3.1.x modules/smart_date_recur/src/Plugin/views/filter/Frequency.php \Drupal\smart_date_recur\Plugin\views\filter\Frequency::init()
- 3.3.x modules/smart_date_recur/src/Plugin/views/filter/Frequency.php \Drupal\smart_date_recur\Plugin\views\filter\Frequency::init()
- 3.4.x modules/smart_date_recur/src/Plugin/views/filter/Frequency.php \Drupal\smart_date_recur\Plugin\views\filter\Frequency::init()
Overrides \Drupal\views\Plugin\views\HandlerBase::init().
Provide some extra help to get the operator/value easier to use.
This likely has to be overridden by filters which are more complex than simple operator/value.
Overrides InOperator::init
File
- modules/
smart_date_recur/ src/ Plugin/ views/ filter/ Frequency.php, line 20
Class
- Frequency
- Filter class which filters by the available teams.
Namespace
Drupal\smart_date_recur\Plugin\views\filterCode
public function init(ViewExecutable $view, DisplayPluginBase $display, array &$options = NULL) {
parent::init($view, $display, $options);
$this->valueTitle = t('Frequency');
// TODO: Switch to getFrequencyLabelsOrNull to allow filtering on
// non-recurring events. Currently returns no results if selected.
$this->valueOptions = SmartDateRule::getFrequencyLabels();
}