src/Controller/Component/UserToolComponent.php
protected function _setViewVar($viewVar, $entity) {
		if ($viewVar === false) {
			return;
		}

		$this->getController()->set($viewVar, $entity);
	}
protected function _setViewVar($viewVar, $entity) {
		if ($viewVar === false) {
			return;
		}

		$this->getController()->set($viewVar, $entity);
	}
protected function _setViewVar ( $ viewVar , $ entity ) { if ( $ viewVar === false ) { return ; } $ this -> getController ( ) -> set ( $ viewVar , $ entity ) ; }
Handles the optional setting of view vars within the component.

@param bool $viewVar Set the view var or not
@param \Cake\Datasource\EntityInterface $entity User entity
@return void
Handles the optional setting of view vars within the component .