/**
* 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's Smart Spec Data Sheet
Learn how Smart Spec helps generate a submittal log in minutes. 4 Security Reasons for Replacing Your On-Prem…
Why Your On-Prem File Server Falls Short on Security and What to Do About It2023 Business Value Report
View documented customer ROI through reduced IT spend, increased productivity, and secure data.Life Sciences Summit 2024
Watch our half-day event, in partnership with Google Cloud, to learn how to harness your life…IDC Spotlight
Unleashing the Value of Data with Content and Context-Aware Protection.The High Cost of Minimal Effort: Cybersecurity…
Understand the critical importance of adopting an advanced cybersecurity stance.The Cost Savings of Moving off On-Premises File…
Understand the real, direct and indirect, costs of keeping an on-premises file server and the…CMMC Compliance Checklist
Practical IT Security and project-related recommendations so you can build a solid CMMC 2.0…Streamline Collaboration Across Your Life…
Insights into proven frameworks for simple and secure collaboration across the life science…Decoding the Blueprint: AEC Data Insights…
Delve into key trends, challenges, and strategies shaping the future of AEC.Automating the Golden Thread of Data with…
Join our webinar on automating the Golden Thread of Data with Procore and Egnyte to streamline…Best Practices for eTMF Transfer from CRO to…
Unlock the secrets of successful and secure eTMF transfers.How to Sell Your Idea to Your CFO
A guide to Business Value Assessments.Discover Effortless Document Archival Solution
Maintain order, compliance, and security for your valuable data.