/**
* 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 Hacked and Exposed: What Business Leaders Need…
A new survey finds that 28% of Americans surveyed have been hacked without realizing it for…IDC Link: Making AI Practical and Purposeful…
IDC's Amy Machado, Senior Research Manager, Enterprise Content and Knowledge Management…Top-Ranked ENR Firms Are Fast-Tracking Digital…
The eBook, "Why Top-Ranked ENR Firms Are Fast-Tracking Digital Transformation with Egnyte,"…Master Data Governance in Life Sciences
Our ebook offers a strategic framework for effective data governance in life sciences, ensuring…Navigating Your Cloud Journey in Construction
A 3-part ebook series that discusses the steps for effectively migrating to the cloudHarnessing Technology: The 2024 Financial…
Egnyte’s survey of finance leaders providing insights into how companies are adopting cloud…The Future of Data in Engineering
Produced by the American Council of Engineering Companies (ACEC) and Egnyte.Beyond Blueprints: A Guide to Data-Driven…
How to use data to drive better decision-making, productivity, and efficiency in projects.Streamline Collaboration Across Your Life…
Insights into proven frameworks for simple and secure collaboration across the life science…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.How to Effectively Manage, Secure, and Govern…
A comprehensive guide to the world of effective data management.Accelerating Time to Insights in a Statistical…
Discover how Egnyte's multilingual intelligent platform is reshaping the landscape for Life…