/** * Implements hook_preprocess_HOOK() for paragraph__egnyte_product_tour_feed. */ function egnyte_product_tour_feed_preprocess_paragraph__egnyte_product_tour_feed(array &$variables) { // Load Bundle. $variables['#attached']['library'][] = 'egnyte_site_builder/product-tour-feed-block-js'; $pt_filter = []; $paragraph = $variables['elements']['#paragraph']; $product_tours = EgnyteProductTourFeed::getInstance(); $selected_pt = $paragraph->field_egnyte_product_tour_list->getValue() ?? []; // Array of Custom "All Product Tours" Filter nodes. foreach ($selected_pt as $key => $value) { $pt_filter['target_id'][$key] = $value['target_id']; } $variables['product_button_header'] = 'All Product Tours'; $variables['product_tours'] = !empty($selected_pt) ? EgnyteProductTourFeed::getInstance()->getProductToursByNids($pt_filter['target_id']) : $pr
Egnyte's Life Sciences Summit is back! Join our virtual event to explore cutting-edge strategies for data governance, compliance, and collaboration in clinical research.
How PCL and MG Engineering unlock the power of their project and business data.
Watch On-DemandGoogle Cloud and Egnyte present a session for IT and Security leaders to reduce complexity, cost, and help prevent cybercrime.
Watch On-DemandJoin us for a Product Roadmap update and a sneak-peek into our upcoming Next-Gen Platform (launching in August) with the new Egnyte Copilot!
Watch On-DemandWatch Egnyte + Google Cloud's Life Sciences Summit to learn how to harness your life sciences data and innovate at scale.
Watch On-DemandThis year's virtual event will provide a wealth of content to help you capitalize on opportunities and succeed in an ever-evolving landscape.
Watch On-DemandUnderstand the real, direct and indirect, costs of keeping an on-premises file server and the value of a cloud migration.
Watch On-Demand