Newscoop\Entity\Theme\Loader\LocalLoader::find PHP Method

find() public method

Get theme
public find ( string $offset ) : Theme
$offset string
return Newscoop\Entity\Theme
    public function find($offset)
    {
        $configFile = $this->formatPath($offset);
        if (!file_exists($configFile)) {
            throw new \InvalidArgumentException("'{$configFile}' not found");
        }
        $config = simplexml_load_file($configFile);
        return new Theme($offset, $config);
    }