5 * Hooks and documentation related to paragraphs module.
14 * Alter the information provided in
15 * \Drupal\paragraphs\Annotation\ParagraphsBehavior.
17 * @param $paragraphs_behavior
18 * The array of paragraphs behavior plugins, keyed on the
19 * machine-readable plugin name.
21 function hook_paragraphs_behavior_info_alter(&$paragraphs_behavior) {
22 // Set a new label for the my_layout plugin instead of the one
23 // provided in the annotation.
24 $paragraphs_behavior['my_layout']['label'] = t('New label');
28 * @} End of "addtogroup hooks".