yii\mail\BaseMailer::setView PHP Метод

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

public setView ( array | View $view )
$view array | yii\web\View view instance or its array configuration that will be used to render message bodies.
    public function setView($view)
    {
        if (!is_array($view) && !is_object($view)) {
            throw new InvalidConfigException('"' . get_class($this) . '::view" should be either object or configuration array, "' . gettype($view) . '" given.');
        }
        $this->_view = $view;
    }