/** * 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.
Why Your On-Prem File Server Falls Short on Security and What to Do About It.
Watch On-DemandJoin our webinar on automating the Golden Thread of Data with Procore and Egnyte to streamline workflows and elevate efficiency.
Watch On-DemandDelve into key trends, challenges, and strategies shaping the future of AEC.
Watch On-Demand20 Minutes to Improve Your Cybersecurity Posture and The Current State of Ransomware.
Watch On-DemandJoin our webinar to learn how the CMMC 2.0 proposed rule- which was published by the DoD in December 2023- will impact your organization.
Watch On-DemandDiscover the winning combination of Egnyte + Microsoft that transforms collaboration into a secure and productive experience.
Watch On-Demand