Same name in other branches
- 2.x src/EntityClone/EntityCloneFormInterface.php \Drupal\entity_clone\EntityClone\EntityCloneFormInterface::formElement()
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\EntityCloneCode
public function formElement(EntityInterface $entity, $parent = TRUE);