function ContentEntityForm::__construct

Same name in other branches
  1. 9 core/lib/Drupal/Core/Entity/ContentEntityForm.php \Drupal\Core\Entity\ContentEntityForm::__construct()
  2. 8.9.x core/lib/Drupal/Core/Entity/ContentEntityForm.php \Drupal\Core\Entity\ContentEntityForm::__construct()
  3. 11.x 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.

8 calls to ContentEntityForm::__construct()
AccountForm::__construct in core/modules/user/src/AccountForm.php
Constructs a new EntityForm object.
BookOutlineForm::__construct in core/modules/book/src/Form/BookOutlineForm.php
Constructs a BookOutlineForm object.
CommentForm::__construct in core/modules/comment/src/CommentForm.php
Constructs a new CommentForm.
MenuLinkContentForm::__construct in core/modules/menu_link_content/src/Form/MenuLinkContentForm.php
Constructs a MenuLinkContentForm object.
MessageForm::__construct in core/modules/contact/src/MessageForm.php
Constructs a MessageForm object.

... See full list

8 methods override ContentEntityForm::__construct()
AccountForm::__construct in core/modules/user/src/AccountForm.php
Constructs a new EntityForm object.
BookOutlineForm::__construct in core/modules/book/src/Form/BookOutlineForm.php
Constructs a BookOutlineForm object.
CommentForm::__construct in core/modules/comment/src/CommentForm.php
Constructs a new CommentForm.
MenuLinkContentForm::__construct in core/modules/menu_link_content/src/Form/MenuLinkContentForm.php
Constructs a MenuLinkContentForm object.
MessageForm::__construct in core/modules/contact/src/MessageForm.php
Constructs a MessageForm object.

... See full list

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;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.