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 in src/
EntityClone/ Config/ ConfigEntityCloneFormBase.php - ContentEntityCloneFormBase.php in src/
EntityClone/ Content/ ContentEntityCloneFormBase.php
File
-
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
Title Sort descending | Modifiers | Object type | Summary | 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 |