/** * {@inheritDoc} */ protected function getFilterWidgetParameters(IAttribute $attribute, $currentValue, $ids) { $parameters = parent::getFilterWidgetParameters($attribute, $currentValue, $ids); $parameters['timetype'] = $this->get('timetype'); $parameters['dateformat'] = $this->get('dateformat'); return $parameters; }
/** * {@inheritDoc} */ protected function getFilterWidgetParameters(IAttribute $attribute, $currentValue, $ids) { $parameters = parent::getFilterWidgetParameters($attribute, $currentValue, $ids); $parameters['timetype'] = $this->get('timetype'); $parameters['dateformat'] = $this->determineDateFormat(); // Add eval values that shall get passed to the widget instance. $parameters['eval']['rgxp'] = 'MetaModelsFilterRangeDateRgXp'; $parameters['eval']['dateformat'] = $this->determineDateFormat(); return $parameters; }