/**
* 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…Procore Data Sheet
Learn about Egnyte's Procore Integration and how it works for AEC companies.Egnyte for AEC – One Platform to Unify, Protect…
Learn about Egnyte's unique data management solutions for thousands of leading AEC customers.Egnyte for Private Equity Firms
Learn how Egnyte helps protect, govern, and share data with advisors, employees, and clients…Egnyte for Life Sciences Quality
Quality teams have access to powerful tools to manage regulated documents.Salesforce Data Sheet
Learn how Egnyte's Salesforce Integration helps you access and share files.Extending M365 Value with Egnyte
How to simplify the administration and governance of M365 file services.