function hook_paragraphs_set_SET_data_alter in Paragraphs Sets 8
Same name and namespace in other branches
- 8.2 paragraphs_sets.api.php \hook_paragraphs_set_SET_data_alter()
Alter the default field data provided by a specific set.
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 44 - Hooks and documentation related to paragraphs_sets module.
Code
function hook_paragraphs_set_SET_data_alter(array &$data, array $context) {
}