final class CreateTextFieldListener (View source)

Traits

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

Stores input, output and IO objects for easy access in commands.

Properties

protected InputInterface $input from  IoTrait
protected OutputInterface $output from  IoTrait
protected DrushStyle $io from  IoTrait

Methods

static AutowireTrait
create(ContainerInterface $container)

Instantiates a new instance of the implementing class using autowiring.

DrushStyle
setIo(InputInterface $input, OutputInterface $output)

No description

from  IoTrait
DrushStyle
io()

No description

from  IoTrait
InputInterface
input()

No description

from  IoTrait
OutputInterface
output()

No description

from  IoTrait
void
ensureIo()

No description

from  IoTrait
__construct(EntityTypeManagerInterface $entityTypeManager, FieldTypePluginManagerInterface $fieldTypePluginManager)

No description

void
onConsoleCommand(ConsoleCommandEvent $event)

No description

void
bool
hasAllowedFormats(string|null $fieldType = null)

No description

array
askAllowedFormats()

Ask for the allowed formats. Only used in case the command is run interactively.

Details

static AutowireTrait create(ContainerInterface $container)

Instantiates a new instance of the implementing class using autowiring.

Parameters

ContainerInterface $container

The service container this instance should use.

Return Value

AutowireTrait

DrushStyle setIo(InputInterface $input, OutputInterface $output)

No description

Parameters

InputInterface $input
OutputInterface $output

Return Value

DrushStyle

DrushStyle io()

No description

Return Value

DrushStyle

protected InputInterface input()

No description

Return Value

InputInterface

protected OutputInterface output()

No description

Return Value

OutputInterface

protected void ensureIo()

No description

Return Value

void

__construct(EntityTypeManagerInterface $entityTypeManager, FieldTypePluginManagerInterface $fieldTypePluginManager)

No description

Parameters

EntityTypeManagerInterface $entityTypeManager
FieldTypePluginManagerInterface $fieldTypePluginManager

void onConsoleDefinitionEvent(ConsoleDefinitionsEvent $event)

No description

Parameters

ConsoleDefinitionsEvent $event

Return Value

void

void onConsoleCommand(ConsoleCommandEvent $event)

No description

Parameters

ConsoleCommandEvent $event

Return Value

void

void onFieldConfigValues(FieldCreateFieldConfigValuesEvent $event)

No description

Parameters

FieldCreateFieldConfigValuesEvent $event

Return Value

void

void onInputOptions(FieldCreateInputOptionsEvent $event)

No description

Parameters

FieldCreateInputOptionsEvent $event

Return Value

void

protected bool hasAllowedFormats(string|null $fieldType = null)

No description

Parameters

string|null $fieldType

Return Value

bool

protected array askAllowedFormats()

Ask for the allowed formats. Only used in case the command is run interactively.

Return Value

array