public function getTitle() { if ($this->title === null && $this->form) { return $this->form->_fieldTitle($this); } return parent::getTitle(); }
public function getTitle() { if ($this->title !== null || !$this->form) { return parent::getTitle(); } if ($title = $this->form->_fieldTitle($this)) { return $title; } return parent::getTitle(); }