示例#1
0
 /**
  * @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();
 }
示例#2
0
 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();
 }
示例#3
0
 public function overloadStoreToMailchimp(callable $next, ElementObject $context)
 {
     $element = $context->getElement();
     $this->storeToMailchimp($element);
     return $next();
 }
示例#4
0
 /**
  * @param ElementObject $context
  *
  * @return mixed
  */
 public function overloadDecorate(callable $next, ElementObject $context)
 {
     $element = $context->getElement();
     $this->decorateValue($element);
     return $next();
 }
示例#5
0
 public function overloadDecorate(callable $next, ElementObject $context)
 {
     $this->decorateTitle($context->getElement());
     return $next();
 }