public function ConditionalFieldForm::__construct in Conditional Fields 4.x
Same name and namespace in other branches
- 8 src/Form/ConditionalFieldForm.php \Drupal\conditional_fields\Form\ConditionalFieldForm::__construct()
Class constructor.
Parameters
\Drupal\conditional_fields\Conditions $list: Conditions list provider.
\Drupal\Core\Entity\EntityFieldManagerInterface $entity_field_manager: Provides an interface for an entity field manager.
\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: Provides an interface for entity type managers.
\Drupal\Component\Uuid\UuidInterface $uuid: Uuid generator.
File
- src/
Form/ ConditionalFieldForm.php, line 105
Class
- ConditionalFieldForm
- A form with a list of conditional fields for an entity type.
Namespace
Drupal\conditional_fields\FormCode
public function __construct(Conditions $list, EntityFieldManagerInterface $entity_field_manager, EntityTypeManagerInterface $entity_type_manager, UuidInterface $uuid) {
$this->entityFieldManager = $entity_field_manager;
$this->entityTypeManager = $entity_type_manager;
$this->list = $list;
$this->uuidGenerator = $uuid;
}