mrjmd / pdb

Decoupled Blocks is a Drupal 8 module to simplify integrating javascript frameworks into your site.
https://www.drupal.org/sandbox/mrjmd/2664138
57 stars 14 forks source link

Component path available at component info array for plugin blocks #120

Closed emacoti closed 1 year ago

emacoti commented 4 years ago

Some plugin blocks like ReactBlock or Ng2Block require the path to the component to work. There is code on pdb_ng2 that is taking care of the component path when it is not available. Don't know why but it seems that something changed on recent core versions and this code is not working properly for components other than ng2. Also, taking care of other presentation stuff on pdb_ng2 can be confusing. This PR is then making the path available at component info array on component discovery for plugin blocks that require it. With that, the code on pdb_ng2.module is deprecated now and thus removed.

emacoti commented 1 year ago

Will check for this on d.o. if needed. Closing here.