src/Cornford/Alerter/Alert.php
public function display($viewPath = null, $view = null)
	{
		if (!$viewPath) {
			$viewPath = $this->viewPath;
		}

		if (!$view) {
			$view = $this->view;
		}

		return (new AlertDisplay($this, $viewPath, $view))->display();
	}
public function display($viewPath = null, $view = null)
	{
		if (!$viewPath) {
			$viewPath = $this->viewPath;
		}

		if (!$view) {
			$view = $this->view;
		}

		return (new AlertDisplay($this, $viewPath, $view))->display();
	}
public function display ( $ viewPath = null , $ view = null ) { if ( ! $ viewPath ) { $ viewPath = $ this -> viewPath ; } if ( ! $ view ) { $ view = $ this -> view ; } return ( new AlertDisplay ( $ this , $ viewPath , $ view ) ) -> display ( ) ; }
Return a string of alert display HTML for a set display view.

@param string $view
@param string $viewPath

@return string
Return a string of alert display HTML for a set display view .