final class FieldInfoCommand extends Command (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.

Constants

NAME

Properties

protected FormatterOptions $formatterOptions from  FormatterTrait
InputInterface $input from  EntityTypeBundleAskTrait
protected OutputInterface $output from  IoTrait
protected DrushStyle $io from  IoTrait
EntityTypeBundleInfoInterface $entityTypeBundleInfo from  EntityTypeBundleAskTrait
EntityTypeManagerInterface $entityTypeManager from  EntityTypeBundleValidationTrait

Methods

static AutowireTrait
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

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
array
getFieldableEntityTypes()

No description

string|null
askEntityType()

No description

string|null
askBundle()

No description

void
validateEntityType(string $entityTypeId)

No description

void
validateBundle(string $entityTypeId, string $bundle)

No description

renderArray($key, $value, FormatterOptions $options)

No description

renderBoolean($key, $value, FormatterOptions $options)

No description

__construct(EntityTypeManagerInterface $entityTypeManager, EntityTypeBundleInfoInterface $entityTypeBundleInfo, FormatterManager $formatterManager)

No description

void
configure()

No description

int
execute(InputInterface $input, OutputInterface $output)

No description

doExecute(InputInterface $input, OutputInterface $output)

No description

void
complete(CompletionInput $input, CompletionSuggestions $suggestions)

No description

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

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

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

protected array getFieldableEntityTypes()

No description

Return Value

array

protected string|null askEntityType()

No description

Return Value

string|null

protected string|null askBundle()

No description

Return Value

string|null

protected void validateEntityType(string $entityTypeId)

No description

Parameters

string $entityTypeId

Return Value

void

protected void validateBundle(string $entityTypeId, string $bundle)

No description

Parameters

string $entityTypeId
string $bundle

Return Value

void

renderArray($key, $value, FormatterOptions $options)

No description

Parameters

$key
$value
FormatterOptions $options

renderBoolean($key, $value, FormatterOptions $options)

No description

Parameters

$key
$value
FormatterOptions $options

protected RowsOfFields getRowsOfFieldsByFieldDefinitions(array $fieldDefinitions)

No description

Parameters

array $fieldDefinitions

Return Value

RowsOfFields

__construct(EntityTypeManagerInterface $entityTypeManager, EntityTypeBundleInfoInterface $entityTypeBundleInfo, FormatterManager $formatterManager)

No description

Parameters

EntityTypeManagerInterface $entityTypeManager
EntityTypeBundleInfoInterface $entityTypeBundleInfo
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

void complete(CompletionInput $input, CompletionSuggestions $suggestions)

No description

Parameters

CompletionInput $input
CompletionSuggestions $suggestions

Return Value

void