/** * Prepare the form element (mostly used for rendering purposes) * * @param FormInterface $form * @return mixed */ public function prepareElement(FormInterface $form) { parent::prepareElement($form); $name = $this->getName(); $this->dayElement->setName($name . '[day]'); }