How to add settings to drupalSettings.react-apps

Created on 17 April 2020, about 4 years ago
Updated 31 July 2023, 11 months ago

I noticed react blocks add this setting to blocks. My question is how I can add my own variables to Drupal settings related to my block, for example NID or other data.

$attached['drupalSettings']['react-apps'][$machine_name]['uri'] = '/' . $component['path'];

Thanks!

πŸ’¬ Support request
Status

Active

Version

2.0

Component

Documentation

Created by

πŸ‡¦πŸ‡·Argentina dariogcode

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024