/** * @inheritdoc */ protected function normaliseRenderOptions() { $options = parent::normaliseRenderOptions(); $options['attributes'] = ArrayUtilities::mergeHtmlAttributes(array('id' => $this->getField()->getName() . '-field'), $options['attributes']); return $options; }
/** * @inheritdoc */ protected function normaliseRenderOptions() { return ArrayUtilities::combine(parent::normaliseRenderOptions(), array(self::RENDER_OPTION_KEY_ELEMENT_NAME => 'form', self::RENDER_OPTION_KEY_ATTRIBUTES => array('action' => $this->form->getSubmitUrl(), 'method' => $this->form->getMethod()))); }
/** * @inheritdoc */ protected function normaliseRenderOptions() { return ArrayUtilities::combine(parent::normaliseRenderOptions(), array(self::RENDER_OPTION_KEY_ELEMENT_NAME => 'fieldset', self::RENDER_OPTION_KEY_ATTRIBUTES => array('id' => sprintf('sitegear-fieldset-%s', NameUtilities::convertToDashedLower($this->getFieldset()->getHeading()))))); }
/** * @param RendererFactoryInterface $factory * @param FormInterface $form */ public function __construct(RendererFactoryInterface $factory, FormInterface $form) { $this->form = $form; parent::__construct($factory); }