/**
* 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 Why IT Leaders Choose Egnyte Over Traditional…
With Matt Richmond, Chief Technology Officer, RIOS and Bob Opferman, Director of IT, Ricondo…Make the Business Case for ISO 27001…
Join us on May 16th to hear actionable ISO 27001 recommendations based on real-world experience.The Future of CMMC: Where Do We Go From Here?
Hear about the future of CMMC and how organizations like yours can begin planning now.Replacing On-Premises File Servers with…
Experts discuss the hidden costs of SharePoint and how they can add up on your balance sheet.Simplify ISO 27001 compliance with Egnyte
Improve your IT security and simplify compliance with Egnyte.How to Protect Your Employees' Sensitive…
Balance the need for employees', applicants' & contractors' personal data collection with…How to Improve Collaboration with CROs and…
Watch Adrian Dupre, Senior Director of IT at Icosavax discusses how they use Egnyte to share…Replacing On-Premises File Servers with…
Pros and Cons of SharePoint Online vs. Egnyte, as a cloud replacement for an on-premise file…CMMC 2.0: Navigating the New Regulations
Join ERRG and Tutor Perini Corporation as they share their compliance journey and what you need…Egnyte's 2022 AEC Data Insights Webinar
Join our AEC industry expert panel to discuss Egnyte's 2022 AEC Data Insights Report results and…Lab to Cloud Workflows for Data Availability,…
How the “lab-in-the-cloud” approach can help speed research in a collaborative and secure…Replacing Windows File Server with Egnyte
See how easy it can be to move your Windows file server to a single cloud solution for content…Why Cyber Insurance Premiums Continue to Rise…
Learn what companies are doing to keep premiums down.Cybersecurity Trends for Mid-Sized Organizations
Hear findings from Egnyte’s cybersecurity trends study and recommendations to improve your…