You are here

function hook_entityconnect_add_edit_button_submit_alter in Entity connect 8.2

Same name and namespace in other branches
  1. 7.2 entityconnect.api.php \hook_entityconnect_add_edit_button_submit_alter()

Allows module to change the parent form data that will be cached.

Parameters

array $data: An array of data that will be cached. $data = array( 'form' => $form, 'form_state' => $form_state, 'dest' => \Drupal::routeMatch(), 'params' => \Drupal::request()->query->all(), 'field' => $field, 'field_info' => $fieldInfo, 'key' => $key, 'add_child' => $triggeringElement['#add_child'], 'target_id' => $target_id, 'target_entity_type' => $entityType, 'acceptable_types' => $acceptableTypes, 'field_container' => $fieldContainer, 'field_container_key_exists' => $keyExists, );.

1 invocation of hook_entityconnect_add_edit_button_submit_alter()
EntityconnectSubmit::addEditButtonSubmit in src/Element/EntityconnectSubmit.php
Button #submit callback: Call when an entity is to be added or edited.

File

./entityconnect.api.php, line 186
This file describes hooks provided by entityconnect.

Code

function hook_entityconnect_add_edit_button_submit_alter(array &$data) {
}