src/Page/Page.php
public function with($key, $value = null): PageInterface
    {
        $this->ui()->getView()->with($key, $value);

        return $this;
    }
public function with($key, $value = null): PageInterface
    {
        $this->ui()->getView()->with($key, $value);

        return $this;
    }
public function with ( $ key , $ value = null ) : PageInterface { $ this -> ui ( ) -> getView ( ) -> with ( $ key , $ value ) ; return $ this ; }
Add data to the page view.

@param string|array $key
@param mixed        $value

@return PageInterface
Add data to the page view .