Same name and namespace in other branches
  1. 2.x src/EntityClone/EntityCloneFormInterface.php \Drupal\entity_clone\EntityClone\EntityCloneFormInterface::formElement()

Get all specific form element.

Paramètres

\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 dans src/EntityClone/Config/ConfigEntityCloneFormBase.php
Get all specific form element.
ContentEntityCloneFormBase::formElement dans src/EntityClone/Content/ContentEntityCloneFormBase.php
Get all specific form element.

Fichier

src/EntityClone/EntityCloneFormInterface.php, line 24

Classe

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

Namespace

Drupal\entity_clone\EntityClone

Code

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