final class PmListCommand extends Command (View source)

Traits

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

Constants

NAME

Properties

protected FormatterOptions $formatterOptions from  FormatterTrait
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.

void
writeFormattedOutput(InputInterface $input, OutputInterface $output, $data)

Filter, format, and write to the output

mixed
alterResult($result, InputInterface $input)

No description

wrapFilteredResult($data, $source)

If the source data was wrapped in a marker class such as RowsOfFields, then re-apply the wrapper.

void
setFormatterOptions(FormatterOptions $formatterOptions)

Public because is used by FormatterListener.

mixed
getPrivatePropValue(mixed $object, $name)

No description

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, ModuleHandlerInterface $moduleHandler, ThemeHandlerInterface $themeHandler, ModuleExtensionList $extensionListModule, LoggerInterface $logger, FormatterManager $formatterManager)

No description

void
configure()

No description

int
execute(InputInterface $input, OutputInterface $output)

No description

doExecute(InputInterface $input, OutputInterface $output)

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.

protected void writeFormattedOutput(InputInterface $input, OutputInterface $output, $data)

Filter, format, and write to the output

Parameters

InputInterface $input
OutputInterface $output
$data

Return Value

void

protected mixed alterResult($result, InputInterface $input)

No description

Parameters

$result
InputInterface $input

Return Value

mixed

protected wrapFilteredResult($data, $source)

If the source data was wrapped in a marker class such as RowsOfFields, then re-apply the wrapper.

Parameters

$data
$source

protected FormatterOptions getFormatterOptions()

No description

Return Value

FormatterOptions

void setFormatterOptions(FormatterOptions $formatterOptions)

Public because is used by FormatterListener.

Parameters

FormatterOptions $formatterOptions

Return Value

void

protected mixed getPrivatePropValue(mixed $object, $name)

No description

Parameters

mixed $object
$name

Return Value

mixed

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, ModuleHandlerInterface $moduleHandler, ThemeHandlerInterface $themeHandler, ModuleExtensionList $extensionListModule, LoggerInterface $logger, FormatterManager $formatterManager)

No description

Parameters

ConfigFactoryInterface $configFactory
ModuleHandlerInterface $moduleHandler
ThemeHandlerInterface $themeHandler
ModuleExtensionList $extensionListModule
LoggerInterface $logger
FormatterManager $formatterManager

protected void configure()

No description

Return Value

void

int execute(InputInterface $input, OutputInterface $output)

No description

Parameters

InputInterface $input
OutputInterface $output

Return Value

int

protected RowsOfFields doExecute(InputInterface $input, OutputInterface $output)

No description

Parameters

InputInterface $input
OutputInterface $output

Return Value

RowsOfFields