$value) { $display = EntityViewDisplay::load('paragraph.' . $value['#paragraph']->bundle() . '.' . $value['#view_mode']) ?: EntityViewDisplay::load('paragraph.' . $value['#paragraph']->bundle() . '.default'); $paragraph_type = $value['#paragraph']->getParagraphType(); foreach ($paragraph_type->getEnabledBehaviorPlugins() as $plugin_id => $plugin_value) { $plugin_value->view($build_list[$key], $value['#paragraph'], $display, $value['#view_mode']); } } return $build_list; } }