/**
* 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 Replacing On-Premises File Servers With Cloud…
How legacy file server technology has become obsolete and why four companies moved to Egnyte.Unify, Protect, and Control Project Documents…
A guide to improving visibility and productivity throughout a project's lifecycle.A Blueprint for a Scalable Content Architecture
How emerging life science firms are reimagining their systems for today's content-critical age.Why Sharepoint Online is Not the Answer for…
The top 5 challenges associated with Sharepoint as a file server replacement.Movement to Modernize
Are You Still File-Serving Like it's 2002? A Plan for Retiring your File Server.Controlling Content Chaos
Transform how you collaborate on, secure, and manage your content in today's digital environment.Vendor Selection Guide for eTMF
Find the right eTMF solution for clinical trial collaboration, compliance, and control.Investing in an eTMF?
An eTMF is crucial for running a successful clinical trial. Here’s what you need to know.The Modern IT Playbook for MSPs
Learn how to help clients mitigate threats, move to the cloud, and support hybrid work. 9 Tips for Quality Documentation Processes
Discover best practices for building a comprehensive document management proces.Select the Right Cloud Data Security Solution
A guide for mid-market CIOs to learn about and select cloud security solutions. Understanding Data Governance
Read this primer to understand, prioritize, and scope a data governance program.GxP Validation in the Age of Tech Disruption
Read about best practices for GxP validation.Data Privacy Regulations in Life Sciences
Learn how to stay compliant with global privacy laws.