/** * Manipulates the name attribute * * @return array */ public function getAttributes() { $name = $this->getName(); if (strpos($name, ']') == strlen($name) - 1) { $newName = str_replace(']', '-orig]', $name); } else { $newName = $name . '-orig'; } return array_merge(parent::getAttributes(), array('name' => $newName)); }
public function getAttributes() { return array_merge(parent::getAttributes(), array('multiple' => $this->multiple, 'size' => $this->size)); }
/** * {@inheritdoc} */ public function getAttributes() { return array_merge(parent::getAttributes(), array('name' => $this->getName() . '[]')); }
public function getAttributes() { $attributes = parent::getAttributes(); unset($attributes['name']); unset($attributes['required']); unset($attributes['role']); return $attributes; }