/**
* 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
Resources Center - Webinars, Industry Specific and Analyst Reports Egnyte Document Room Data Sheet
Learn about Egnyte Document room, a single, secure repository to protect and manage highly…Investing in Cloud Construction Technology
Workplace experts investing in tech for project efficiency and cost reduction.Getting Started with Smart Cache
Learn more about the benefits of smart cache and how to leverage this feature for you and your…Uncover Hidden Risk Across Your Data…
Safeguard your business content from unauthorized access, data breaches, and compliance…Data Resiliency in Design and Construction
Document access, Cybersecurity, Risk management, and workforce access in AEC. Watch the Report…Data Migration Checklist
Your checklist for replacing your on-premise file server with cloud-based storage.Data Resiliency in Design and Construction 2023…
Report on survey conducted by Dodge Data & Analytics on behalf of Egnyte that provides…The ROI on CMMC 2.0 Certification
Getting CMMC certified can lead to more and better government contracts.Transforming Collaboration and Data Management…
How MOMA Therapeutics uses Egnyte to facilitate collaboration, centralize content and preserve…A Plan for Retiring Your File Server
Moving your file server to the cloud is easier than you think.10 Evaluation Questions for a Trusted CMMC…
Learn ten questions you should ask every potential CMMC partner.Access Newforma content anytime, anywhere with…
Lionakis & Kirksey Architecture explain how they do it.Egnyte Data Privacy Discussion Series
Join us for our monthly series where we’ll discuss the latest trends in data privacy.Build Your Case for File Server Replacement
Join us to hear success stories and strategy used across industries: move away from traditional…