src/LocalImage/RokkaHash.php
public function getContent()
    {
        if (null === $this->templateHelper) {
            throw new \RuntimeException('Rokka TemplateHelper is not set in RokkaHash. Needed for downloading images.');
        }
        if (null === $this->content) {
            $rokkaHash = $this->getRokkaHash();
            if (null !== $rokkaHash) {
                $this->content = $this->templateHelper->getRokkaClient()->getSourceImageContents($rokkaHash);
            }
        }

        return $this->content;
    }
public function getContent()
    {
        if (null === $this->templateHelper) {
            throw new \RuntimeException('Rokka TemplateHelper is not set in RokkaHash. Needed for downloading images.');
        }
        if (null === $this->content) {
            $rokkaHash = $this->getRokkaHash();
            if (null !== $rokkaHash) {
                $this->content = $this->templateHelper->getRokkaClient()->getSourceImageContents($rokkaHash);
            }
        }

        return $this->content;
    }
public function getContent ( ) { if ( null === $ this -> templateHelper ) { throw new \ RuntimeException ( 'Rokka TemplateHelper is not set in RokkaHash. Needed for downloading images.' ) ; } if ( null === $ this -> content ) { $ rokkaHash = $ this -> getRokkaHash ( ) ; if ( null !== $ rokkaHash ) { $ this -> content = $ this -> templateHelper -> getRokkaClient ( ) -> getSourceImageContents ( $ rokkaHash ) ; } } return $ this -> content ; }
Returns the actual content of an image.

@since 1.3.0

@throws \GuzzleHttp\Exception\GuzzleException

@return null|string
Returns the actual content of an image .