You are here

function hook_paragraphs_set_SET_FIELD_NAME_data_alter in Paragraphs Sets 8

Same name and namespace in other branches
  1. 8.2 paragraphs_sets.api.php \hook_paragraphs_set_SET_FIELD_NAME_data_alter()

Alter the default field data provided by a specific set for a single field.

Parameters

array $data: Default field values for the paragraph bundles in the set.

array $context: An associative array containing the following key-value pairs:

  • field: Name of field currently operated on.
  • form: The form render array.
  • form_state: The current form state.
  • key: Internal key of paragraph in set.
  • paragraphs_bundle: Bundle name of paragraph.
  • set: Machine name of current set.

File

./paragraphs_sets.api.php, line 61
Hooks and documentation related to paragraphs_sets module.

Code

function hook_paragraphs_set_SET_FIELD_NAME_data_alter(array &$data, array $context) {
}