final class EntityDeleteCommand 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.

__construct(EntityTypeManagerInterface $entityTypeManager)

No description

void
configure()

No description

int
execute(InputInterface $input, OutputInterface $output)

No description

void
doDelete(string $entity_type, array $ids)

Actual delete method.

QueryInterface
getQuery(string $entity_type, string|null $ids, array $options)

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.

__construct(EntityTypeManagerInterface $entityTypeManager)

No description

Parameters

EntityTypeManagerInterface $entityTypeManager

protected void configure()

No description

Return Value

void

int execute(InputInterface $input, OutputInterface $output)

No description

Parameters

InputInterface $input
OutputInterface $output

Return Value

int

void doDelete(string $entity_type, array $ids)

Actual delete method.

Parameters

string $entity_type
array $ids

Return Value

void

Exceptions

InvalidPluginDefinitionException
PluginNotFoundException
EntityStorageException

protected QueryInterface getQuery(string $entity_type, string|null $ids, array $options)

No description

Parameters

string $entity_type
string|null $ids
array $options

Return Value

QueryInterface

Exceptions

InvalidPluginDefinitionException
PluginNotFoundException