protected function wrapLayout($content)
{
// do not wrap the content if layout is turned off.
if ($this->layout === false) {
return $content;
}
$view = Yii::$app->getView();
return $view->renderPhpFile(Yii::getAlias($this->layout), ['content' => $content]);
}