getValues(). * @param \Drupal\Core\Form\FormStateInterface $form_state * The form state of the parent form. */ public function entityForm(array $entity_form, FormStateInterface $form_state); /** * Validates the entity form. * * @param array $entity_form * The entity form. * @param \Drupal\Core\Form\FormStateInterface $form_state * The form state of the parent form. */ public function entityFormValidate(array &$entity_form, FormStateInterface $form_state); /** * Handles the submission of an entity form. * * @param array $entity_form * The entity form. * @param \Drupal\Core\Form\FormStateInterface $form_state * The form state of the parent form. */ public function entityFormSubmit(array &$entity_form, FormStateInterface $form_state); /** * Saves the given entity. * * @param \Drupal\Core\Entity\EntityInterface $entity * The entity. * * @return int * Either SAVED_NEW or SAVED_UPDATED, depending on the operation performed. */ public function save(EntityInterface $entity); /** * Delete permanently saved entities. * * @param int[] $ids * An array of entity IDs. * @param array $context * Available keys: * - parent_entity_type: The type of the parent entity. * - parent_entity: The parent entity. */ public function delete($ids, $context); }