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