/** * Get form notices. * * @param string|null $field Field name * * @return array */ public function getNotices($field = null) { if ($field) { $notices = $this->_notices->filter($field); } else { $notices = iterator_to_array($this->_notices); } foreach ($this->getFieldSets() as $fieldSet) { $notices += $fieldSet->getNotices($field); } return $notices; }
public function filter($fieldName) { return parent::filter($fieldName); }