Newscoop\Service\Implementation\ThemeServiceLocalFileSystem::findById PHP Method

findById() public method

public findById ( $id )
    function findById($id)
    {
        Validation::notEmpty($id, 'id');
        $themesConfigs = $this->findAllThemesConfigPaths();
        $rpath = $themesConfigs[$id];
        if (isset($rpath)) {
            $path = $this->toFullPath($rpath);
            $xml = $this->loadXML($path);
            if ($xml != NULL) {
                return $this->loadTheme($xml, $id, $rpath);
            }
        }
        return NULL;
    }