Caffeinated\Modules\Repositories\LocalRepository::isEnabled PHP Méthode

isEnabled() public méthode

Check if specified module is enabled.
public isEnabled ( string $slug ) : boolean
$slug string
Résultat boolean
    public function isEnabled($slug)
    {
        $module = $this->where('slug', $slug);
        return $module['enabled'] === true;
    }