Redaxscript\Messenger::warning PHP Method

warning() public method

warning message
Since: 3.0.0
public warning ( mixed $message = null, string $title = null ) : string
$message mixed message of the warning
$title string message title of the warning
return string
    public function warning($message = null, $title = null)
    {
        return $this->render('warning', $message, $title);
    }

Usage Example

Example #1
0
 /**
  * testWarning
  *
  * @since 3.0.0
  *
  * @param array $warning
  * @param array $actionArray
  * @param string $expect
  *
  * @dataProvider providerWarning
  */
 public function testWarning($warning = null, $actionArray = [], $expect = null)
 {
     /* setup */
     $messenger = new Messenger($this->_registry);
     $messenger->setRoute($actionArray['text'], $actionArray['route']);
     /* actual */
     $actual = $messenger->warning($warning['message'], $warning['title']);
     /* compare */
     $this->assertEquals($expect, $actual);
 }
All Usage Examples Of Redaxscript\Messenger::warning