Backend\Modules\Blog\Installer\Installer::getCategory PHP Method

getCategory() private method

Fetch the id of the first category in this language we come across
private getCategory ( string $language ) : integer
$language string The language to use.
return integer
    private function getCategory($language)
    {
        return (int) $this->getDB()->getVar('SELECT id FROM blog_categories WHERE language = ?', array((string) $language));
    }