Skip to content

Commit

Permalink
Only process Plugins that do not depend on other
Browse files Browse the repository at this point in the history
  • Loading branch information
DiegoPino committed Nov 16, 2020
1 parent 9f87da2 commit bdcdf85
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,8 @@ public function onEntityPresave(StrawberryfieldCrudEvent $event) {
$plugin_config_entities = $this->entityTypeManager->getListBuilder('strawberry_runners_postprocessor')->load();
$active_plugins = [];
foreach($plugin_config_entities as $plugin_config_entity) {
if ($plugin_config_entity->isActive()) {
// Only get first level (no Parents) and Active ones.
if ($plugin_config_entity->isActive() && $plugin_config_entity->getParent() == '') {
$entity_id = $plugin_config_entity->id();
$configuration_options = $plugin_config_entity->getPluginconfig();
$configuration_options['configEntity'] = $entity_id;
Expand Down

0 comments on commit bdcdf85

Please sign in to comment.