/** * 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->hourElement->setName($name . '[hour]'); $this->minuteElement->setName($name . '[minute]'); $this->secondElement->setName($name . '[second]'); }