CreateEntityReferenceFieldListener
final class CreateEntityReferenceFieldListener (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
| EntityTypeManagerInterface | $entityTypeManager | from EntityTypeBundleValidationTrait | |
| 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.
from
AutowireTrait
void
validateBundle(string $entityTypeId, string $bundle)
No description
__construct(EntityTypeManagerInterface $entityTypeManager, EntityTypeBundleInfoInterface $entityTypeBundleInfo, EntityFieldManagerInterface $entityFieldManager)
No description
void
void
void
string
getTargetType(InputInterface $input)
No description
array|null
getTargetBundles(InputInterface $input)
No description
string
askReferencedEntityType()
No description
array
askReferencedBundles(string $targetType)
No description
FieldDefinitionInterface|null
getExistingFieldForDefaults()
No description
string|null
getExistingBundleForDefaults()
No description
Details
static AutowireTrait
create(ContainerInterface $container)
Instantiates a new instance of the implementing class using autowiring.
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
void
onConsoleDefinitionEvent(ConsoleDefinitionsEvent $event)
No description
void
onFieldConfigValues(FieldCreateFieldConfigValuesEvent $event)
No description
void
onFieldStorageConfigValues(FieldCreateFieldStorageConfigValuesEvent $event)
No description
protected string
getTargetType(InputInterface $input)
No description
protected array|null
getTargetBundles(InputInterface $input)
No description
protected string
askReferencedEntityType()
No description
protected array
askReferencedBundles(string $targetType)
No description
protected FieldDefinitionInterface|null
getExistingFieldForDefaults()
No description
protected string|null
getExistingBundleForDefaults()
No description