public function __construct($view, $heading = null, $vars = []) { $this->view = $view; $this->vars = $vars; if (!is_string($heading)) { $heading = elgg_echo("ViewColumn:view:{$view}"); } $this->heading = $heading; }