You are here

function hook_paragraphs_set_data_alter in Paragraphs Sets 8.2

Same name and namespace in other branches
  1. 8 paragraphs_sets.api.php \hook_paragraphs_set_data_alter()

Alter the default field data provided by all sets.

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 27
Hooks and documentation related to paragraphs_sets module.

Code

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