public function TestEmbeddedEntityForm::__construct

TestEmbeddedEntityForm constructor.

Parameters

\Drupal\Core\Entity\ContentEntityInterface $entity: The entity of the embedded form.

File

paragraphs/tests/modules/paragraphs_test/src/Form/TestEmbeddedEntityForm.php, line 32

Class

TestEmbeddedEntityForm
A class to build a form that embeds a content entity form.

Namespace

Drupal\paragraphs_test\Form

Code

public function __construct(ContentEntityInterface $entity) {
  $this->entity = $entity;
}