/**
  * Label
  *
  * @param ElementInterface|null $element
  * @param null $labelContent
  * @param null $position
  * @return string|Helper\FormLabel
  */
 public function label(ElementInterface $element = null, $labelContent = null, $position = null)
 {
     $helper = new Helper\FormLabel();
     return $helper->__invoke($element, $labelContent, $position);
 }
Example #2
0
 /**
  * @param ElementInterface|null $element
  * @param null $labelContent
  * @param null $position
  * @return string|OriginalFormLabel
  */
 public function __invoke(ElementInterface $element = null, $labelContent = null, $position = null)
 {
     $this->element = $element;
     return parent::__invoke($element, $labelContent, $position);
 }