Elgg\Views\TableColumn\ViewColumn::__construct PHP Метод

__construct() публичный Метод

Constructor
public __construct ( string $view, string $heading = null, array $vars = [] )
$view string The view to render the value
$heading string Heading
$vars array Vars to merge into the view vars
    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;
    }