Same name and namespace in other branches
  1. 8.9.x core/lib/Drupal/Core/Entity/ContentEntityForm.php \Drupal\Core\Entity\ContentEntityForm::__construct()
  2. 9 core/lib/Drupal/Core/Entity/ContentEntityForm.php \Drupal\Core\Entity\ContentEntityForm::__construct()

Constructs a ContentEntityForm object.

Parameters

\Drupal\Core\Entity\EntityRepositoryInterface $entity_repository: The entity repository service.

\Drupal\Core\Entity\EntityTypeBundleInfoInterface $entity_type_bundle_info: The entity type bundle service.

\Drupal\Component\Datetime\TimeInterface $time: The time service.

5 calls to ContentEntityForm::__construct()
BookOutlineForm::__construct in core/modules/book/src/Form/BookOutlineForm.php
Constructs a BookOutlineForm object.
MessageForm::__construct in core/modules/contact/src/MessageForm.php
Constructs a MessageForm object.
NodeForm::__construct in core/modules/node/src/NodeForm.php
Constructs a NodeForm object.
OverridesEntityForm::__construct in core/modules/layout_builder/src/Form/OverridesEntityForm.php
Constructs a new OverridesEntityForm.
WorkspaceDeleteForm::__construct in core/modules/workspaces/src/Form/WorkspaceDeleteForm.php
Constructs a WorkspaceDeleteForm object.
5 methods override ContentEntityForm::__construct()
BookOutlineForm::__construct in core/modules/book/src/Form/BookOutlineForm.php
Constructs a BookOutlineForm object.
MessageForm::__construct in core/modules/contact/src/MessageForm.php
Constructs a MessageForm object.
NodeForm::__construct in core/modules/node/src/NodeForm.php
Constructs a NodeForm object.
OverridesEntityForm::__construct in core/modules/layout_builder/src/Form/OverridesEntityForm.php
Constructs a new OverridesEntityForm.
WorkspaceDeleteForm::__construct in core/modules/workspaces/src/Form/WorkspaceDeleteForm.php
Constructs a WorkspaceDeleteForm object.

File

core/lib/Drupal/Core/Entity/ContentEntityForm.php, line 56

Class

ContentEntityForm
Entity form variant for content entity types.

Namespace

Drupal\Core\Entity

Code

public function __construct(EntityRepositoryInterface $entity_repository, EntityTypeBundleInfoInterface $entity_type_bundle_info, TimeInterface $time) {
  $this->entityRepository = $entity_repository;
  $this->entityTypeBundleInfo = $entity_type_bundle_info;
  $this->time = $time;
}