FieldBaseOverrideCreateCommand
final class FieldBaseOverrideCreateCommand 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 InputInterface | $input | from IoTrait | |
| EntityTypeBundleInfoInterface | $entityTypeBundleInfo | from EntityTypeBundleAskTrait | |
| EntityTypeManagerInterface | $entityTypeManager | from EntityTypeBundleValidationTrait | |
| protected OutputInterface | $output | from IoTrait | |
| protected DrushStyle | $io | from IoTrait |
Methods
Instantiates a new instance of the implementing class using autowiring.
No description
No description
No description
No description
No description
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 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
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
__construct(EntityTypeManagerInterface $entityTypeManager, EntityTypeBundleInfoInterface $entityTypeBundleInfo, EntityFieldManagerInterface $entityFieldManager)
No description
protected void
configure()
No description
int
execute(InputInterface $input, OutputInterface $output)
No description
void
complete(CompletionInput $input, CompletionSuggestions $suggestions)
No description
protected string|null
askFieldName(string $entityType)
No description
protected string
askFieldLabel(string $default)
No description
protected string|null
askFieldDescription(string|null $default)
No description
protected bool
askRequired(bool $default)
No description
protected BaseFieldOverride
createBaseFieldOverride(string $entityType, string $bundle, string $fieldName, $fieldLabel, $fieldDescription, bool $isRequired)
No description
protected void
logResult(BaseFieldOverride $baseFieldOverride)
No description
protected BaseFieldDefinition|null
getBaseFieldDefinition(string $entityType, string $fieldName)
No description