/** * @param ElementObject $context * * @return mixed */ public function overloadDecorate(callable $next, ElementObject $context) { if ($this->enabled) { $element = $context->getElement(); if ($element instanceof Select) { $this->decorateSelect($element); } } return $next(); }
public function overloadDecorate(callable $next, ElementObject $context) { $element = $context->getElement(); if ($element instanceof Fieldset) { if ($element->isStep()) { $this->decorateStepFieldset($element); } } else { if ($element instanceof Form) { if ($element->isStepped()) { $element->setTag('div')->addClass('formGroup panel-group')->setAttribute('role', 'tablist')->setAttribute('aria-multiselectable', 'true'); } } } return $next(); }
public function overloadStoreToMailchimp(callable $next, ElementObject $context) { $element = $context->getElement(); $this->storeToMailchimp($element); return $next(); }
/** * @param ElementObject $context * * @return mixed */ public function overloadDecorate(callable $next, ElementObject $context) { $element = $context->getElement(); $this->decorateValue($element); return $next(); }
public function overloadDecorate(callable $next, ElementObject $context) { $this->decorateTitle($context->getElement()); return $next(); }