ImageController::getPath PHP Method

getPath() private method

Get image path
private getPath ( ) : string
return string
    private function getPath()
    {
        if ($this->path === null) {
            $image = \Zend_Registry::get('container')->getParameter('image');
            $this->path = implode('/', array(rtrim($image['cache_path'], '/'), $this->_getParam('src')));
        }
        return $this->path;
    }