FieldInfoCommand
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
Instantiates a new instance of the implementing class using autowiring.
Filter, format, and write to the output
If the source data was wrapped in a marker class such as RowsOfFields, then re-apply the wrapper.
Public because is used by FormatterListener.
No description
No description
No description
No description
No description
No description
No description
Details
static AutowireTrait
create(ContainerInterface $container)
Instantiates a new instance of the implementing class using autowiring.
protected void
writeFormattedOutput(InputInterface $input, OutputInterface $output, $data)
Filter, format, and write to the output
protected mixed
alterResult($result, InputInterface $input)
No description
protected
wrapFilteredResult($data, $source)
If the source data was wrapped in a marker class such as RowsOfFields, then re-apply the wrapper.
protected FormatterOptions
getFormatterOptions()
No description
void
setFormatterOptions(FormatterOptions $formatterOptions)
Public because is used by FormatterListener.
protected mixed
getPrivatePropValue(mixed $object, $name)
No description
DrushStyle
setIo(InputInterface $input, OutputInterface $output)
No description
DrushStyle
io()
No description
protected InputInterface
input()
No description
protected OutputInterface
output()
No description
protected void
ensureIo()
No description
protected array
getFieldableEntityTypes()
No description
protected string|null
askEntityType()
No description
protected string|null
askBundle()
No description
protected void
validateEntityType(string $entityTypeId)
No description
protected void
validateBundle(string $entityTypeId, string $bundle)
No description
renderArray($key, $value, FormatterOptions $options)
No description
renderBoolean($key, $value, FormatterOptions $options)
No description
protected RowsOfFields
getRowsOfFieldsByFieldDefinitions(array $fieldDefinitions)
No description
__construct(EntityTypeManagerInterface $entityTypeManager, EntityTypeBundleInfoInterface $entityTypeBundleInfo, FormatterManager $formatterManager)
No description
protected void
configure()
No description
int
execute(InputInterface $input, OutputInterface $output)
No description
protected RowsOfFields
doExecute(InputInterface $input, OutputInterface $output)
No description
void
complete(CompletionInput $input, CompletionSuggestions $suggestions)
No description