final class PmUninstallCommand extends Command (View source)

Traits

A copy of \Drupal\Core\DependencyInjection\AutowireTrait with first params' type hint changed.

Constants

NAME

Properties

protected ConfigFactoryInterface $configFactory from  PmTrait
protected ModuleExtensionList $extensionListModule from  PmTrait
protected ModuleHandlerInterface $moduleHandler from  PmTrait
protected PermissionHandlerInterface $permissionHandler from  PmTrait

Methods

static 
create(ContainerInterface $container)

Instantiates a new instance of the implementing class using autowiring.

array
addInstallDependencies($modules)

No description

from  PmTrait
addUninstallDependencies($modules)

No description

from  PmTrait
string
extensionStatus($extension)

Calculate an extension status based on current status and schema version.

from  PmTrait
array
getModuleLinks(Extension $module)

No description

from  PmTrait
__construct(ConfigFactoryInterface $configFactory, ModuleInstallerInterface $moduleInstaller, ModuleHandlerInterface $moduleHandler, ModuleExtensionList $extensionListModule, LoggerInterface $logger)

No description

void
configure()

No description

int
execute(InputInterface $input, OutputInterface $output)

No description

void
validateUninstall(CommandData $commandData)

No description

Details

static create(ContainerInterface $container)

Instantiates a new instance of the implementing class using autowiring.

Parameters

ContainerInterface $container

The service container this instance should use.

array addInstallDependencies($modules)

No description

Parameters

$modules

Return Value

array

addUninstallDependencies($modules)

No description

Parameters

$modules

string extensionStatus($extension)

Calculate an extension status based on current status and schema version.

Parameters

$extension

Object of a single extension info.

Return Value

string

Status. Values: enabled|disabled.

No description

Parameters

Extension $module

Return Value

array

__construct(ConfigFactoryInterface $configFactory, ModuleInstallerInterface $moduleInstaller, ModuleHandlerInterface $moduleHandler, ModuleExtensionList $extensionListModule, LoggerInterface $logger)

No description

Parameters

ConfigFactoryInterface $configFactory
ModuleInstallerInterface $moduleInstaller
ModuleHandlerInterface $moduleHandler
ModuleExtensionList $extensionListModule
LoggerInterface $logger

protected void configure()

No description

Return Value

void

protected int execute(InputInterface $input, OutputInterface $output)

No description

Parameters

InputInterface $input
OutputInterface $output

Return Value

int

void validateUninstall(CommandData $commandData)

No description

Parameters

CommandData $commandData

Return Value

void