You are here

public function EntityCloneFormInterface::formElement in Entity Clone 8

Get all specific form element.

Parameters

\Drupal\Core\Entity\EntityInterface $entity: The entity.

bool $parent: Is the parent form element.

Return value

array The form elements.

2 methods override EntityCloneFormInterface::formElement()
ConfigEntityCloneFormBase::formElement in src/EntityClone/Config/ConfigEntityCloneFormBase.php
Get all specific form element.
ContentEntityCloneFormBase::formElement in src/EntityClone/Content/ContentEntityCloneFormBase.php
Get all specific form element.

File

src/EntityClone/EntityCloneFormInterface.php, line 24

Class

EntityCloneFormInterface
Defines a common interface for all entity clone form objects.

Namespace

Drupal\entity_clone\EntityClone

Code

public function formElement(EntityInterface $entity, $parent = TRUE);