FieldDeleteCommand
final class FieldDeleteCommand extends Command (View source)
Delete a field
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
| 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.
No description
No description
No description
No description
No description
No description
No description
Returns all field configs for the given entity type and bundle.
No description
Details
static AutowireTrait
create(ContainerInterface $container)
Instantiates a new instance of the implementing class using autowiring.
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
__construct(EntityTypeManagerInterface $entityTypeManager, EntityTypeBundleInfoInterface $entityTypeBundleInfo)
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
askExisting(string $entityType, string|null $bundle)
No description
protected array
getFieldConfigs(string $entityType, string|null $bundle)
Returns all field configs for the given entity type and bundle.
protected void
deleteFieldConfig(FieldConfigInterface $fieldConfig)
No description