/** * Replaces the class placeholders in the title field * * @param Page $section Parent page to use as the class * @return Field Title field with replaced strings */ public function title($section = null) { // if a "Call" field is still set, use that for now $field = !parent::call()->empty() ? 'call' : 'title'; return $this->replaceClass($field, $section); }