Jarves\Storage\ViewStorage::getItem PHP Method

getItem() public method

{@inheritDoc}
public getItem ( $pk, $options = null )
    public function getItem($pk, $options = null)
    {
        $path = $pk['path'];
        $file = $this->jarves->resolvePath($path, 'Resources/views/', true);
        $fileObj = $this->localFilesystem->getFile($file);
        $this->jarves->getBundleFromPath($path, $bundleName);
        $directory = $this->jarves->resolvePath('@' . $bundleName, 'Resources/views', true);
        $path = $this->buildPath($bundleName . ':' . Tools::getRelativePath($fileObj->getPath(), $directory));
        return ['name' => $path, 'path' => $path];
    }