lib/helpers/Html.php
function getViewTitle(): \Closure {
    return function($value, \Mustache_LambdaHelper $helper) {
      $view = \Yii::$app->view;
      if ($view && $view->canSetProperty('title')) $view->title = trim($helper->render($value));
    };
  }
function getViewTitle(): \Closure {
    return function($value, \Mustache_LambdaHelper $helper) {
      $view = \Yii::$app->view;
      if ($view && $view->canSetProperty('title')) $view->title = trim($helper->render($value));
    };
  }
function getViewTitle ( ) : \ Closure { return function ( $ value , \ Mustache_LambdaHelper $ helper ) { $ view = \ Yii :: $ app -> view ; if ( $ view && $ view -> canSetProperty ( 'title' ) ) $ view -> title = trim ( $ helper -> render ( $ value ) ) ; } ; }
Returns a function setting the view title.
@return \Closure A function setting the view title.
Returns a function setting the view title .