Same name in other branches
- 8.x-1.x src/EntityClone/EntityCloneFormInterface.php \Drupal\entity_clone\EntityClone\EntityCloneFormInterface
Defines a common interface for all entity clone form objects.
Hierarchy
- interface \Drupal\entity_clone\EntityClone\EntityCloneFormInterface
Expanded class hierarchy of EntityCloneFormInterface
All classes that implement EntityCloneFormInterface
2 files declare their use of EntityCloneFormInterface
- ConfigEntityCloneFormBase.php dans src/
EntityClone/ Config/ ConfigEntityCloneFormBase.php - ContentEntityCloneFormBase.php dans src/
EntityClone/ Content/ ContentEntityCloneFormBase.php
Fichier
-
src/
EntityClone/ EntityCloneFormInterface.php, line 11
Namespace
Drupal\entity_clone\EntityCloneView source
interface EntityCloneFormInterface {
/**
* Get all specific form element.
*
* @param \Drupal\Core\Entity\EntityInterface $entity
* The entity.
* @param bool $parent
* Is the parent form element.
*
* @return array
* The form elements.
*/
public function formElement(EntityInterface $entity, $parent = TRUE);
/**
* Get all new values provided by the specific form element.
*
* @param \Drupal\Core\Form\FormStateInterface $form_state
* The form state.
*
* @return array
* An array containing all new values.
*/
public function getValues(FormStateInterface $form_state);
}
Members
Titre Trier par ordre décroissant | Modifiers | Object type | Résumé | Overrides |
---|---|---|---|---|
EntityCloneFormInterface::formElement | public | function | Get all specific form element. | 2 |
EntityCloneFormInterface::getValues | public | function | Get all new values provided by the specific form element. | 2 |