final class UserBlockCommand extends Command (View source)

Traits

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

Constants

NAME

Methods

static 
create(ContainerInterface $container)

Instantiates a new instance of the implementing class using autowiring.

array
getAccounts(string $names = '', array $options = [])

No description

array
infoArray($account)

A flatter and simpler array presentation of a Drupal $user object.

__construct(LoggerInterface $logger, DateFormatterInterface $dateFormatter)

No description

void
configure()

No description

int
execute(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 array getAccounts(string $names = '', array $options = [])

No description

Parameters

string $names
array $options

Return Value

array

array infoArray($account)

A flatter and simpler array presentation of a Drupal $user object.

Parameters

$account

Return Value

array

__construct(LoggerInterface $logger, DateFormatterInterface $dateFormatter)

No description

Parameters

LoggerInterface $logger
DateFormatterInterface $dateFormatter

protected void configure()

No description

Return Value

void

int execute(InputInterface $input, OutputInterface $output)

No description

Parameters

InputInterface $input
OutputInterface $output

Return Value

int