/**
  * @inheritdoc
  */
 protected function normaliseRenderOptions()
 {
     $options = parent::normaliseRenderOptions();
     $options['attributes'] = ArrayUtilities::mergeHtmlAttributes(array('id' => $this->getField()->getName() . '-field'), $options['attributes']);
     return $options;
 }
Example #2
0
 /**
  * @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())));
 }
Example #3
0
 /**
  * @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())))));
 }
Example #4
0
 /**
  * @param RendererFactoryInterface $factory
  * @param FormInterface $form
  */
 public function __construct(RendererFactoryInterface $factory, FormInterface $form)
 {
     $this->form = $form;
     parent::__construct($factory);
 }