active(); $enabled = $extensions->configuredEnabled(); $rows = [[ThemeRepository::CLASSIC, 'Classic', '', $active === ThemeRepository::CLASSIC ? 'active' : 'built in']]; foreach ($themes->installed() as $theme) { $state = match (true) { $theme->id === $active => 'active', $enabled->has($theme->id) => 'enabled', default => 'disabled', }; $problem = $themes->activationProblem($theme->id); $rows[] = [$theme->id, $theme->name, $theme->theme?->extends, $problem === null ? $state : "{$state}, unusable: {$problem}"]; } $this->table(['ID', 'Name', 'Extends', 'State'], $rows); return self::SUCCESS; } }