public function isFromRoute($routeName)
    {
        $session = $this->getSession();

        /** @noinspection PhpUndefinedFieldInspection */
        if ($session->data === null || !is_array($session->source)) {
            return null;
        }

        /** @noinspection PhpUndefinedFieldInspection */
        return $session->source['routeName'] === $routeName;
    }
public function isFromRoute($routeName)
    {
        $session = $this->getSession();

        /** @noinspection PhpUndefinedFieldInspection */
        if ($session->data === null || !is_array($session->source)) {
            return null;
        }

        /** @noinspection PhpUndefinedFieldInspection */
        return $session->source['routeName'] === $routeName;
    }
public function isFromRoute ( $ routeName ) { $ session = $ this -> getSession ( ) ; /** @noinspection PhpUndefinedFieldInspection */ if ( $ session -> data === null || ! is_array ( $ session -> source ) ) { return null ; } /** @noinspection PhpUndefinedFieldInspection */ return $ session -> source [ 'routeName' ] === $ routeName ; }
Indicates whether current data from the specified route name.

@param string $routeName

@return bool
@throws \Zend\Session\Exception\InvalidArgumentException
Indicates whether current data from the specified route name .