public function __construct(FormInterface &$form, LayoutParser $parser = NULL) { $this->setForm($form); if ($format !== NULL) { parent::setFormat($format); } }
public function __construct(ElementInterface &$element, $format = NULL) { $this->setElement($element); if ($format !== NULL) { parent::setFormat($format); } }