API / Minn\Ops / InstalledSoftware

InstalledSoftware final readonly class

Minn\Ops\InstalledSoftware · public/minn/src/Minn/Ops/InstalledSoftware.php · 59 lines

What is installed, as the System view lists it: every extension and WordPress plugin with whether it runs, the mu-plugins, the themes with their parents, and the active theme's label.

Constants and properties

privatereadonly Minn\Content\Site $site

Promoted from the constructor.

privatereadonly Minn\Content\Inventory $inventory

Promoted from the constructor.

privatereadonly Minn\Extension\Loader $extensions

Promoted from the constructor.

privatereadonly string $webroot

Promoted from the constructor.

Public

new__construct(Minn\Content\Site $site, Minn\Content\Inventory $inventory, Minn\Extension\Loader $extensions, string $webroot)#
methodactiveExtensionCount(): int#

How many Minn extensions are active.

methodmanifest(): array#

Plugins, mu-plugins, and themes with their versions and whether each is active.

methodactiveThemeLabel(): string#

The active theme's name and version, naming the parent of a child theme; the slug when the headers are missing.