/**
* 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 CMMC Compliance Checklist
Learn critical steps to prepare for your CMMC assessment, along with common pitfalls to avoid.CMMC Compliance Checklist
Practical IT Security and project-related recommendations so you can build a solid CMMC 2.0…The Ultimate Guide for Mastering Document…
Create a document retention policy tailored to your business needs.Deletion Policy Checklist
A checklist to include as part of a robust data governance strategy.Data Migration Checklist
Your checklist for replacing your on-premise file server with cloud-based storage.Building a Scalable Content Architecture in…
The checklist to measure your level of maturity and help you advance in people, process and…Ransomware Checklist
This Egnyte checklist highlights unusual new information from the latest ransomware research.Data Governance Glossary
Talk the talk with this easy glossary for IT and business leaders.Business Value Assessment
Compare the costs of your unstructured file content to the value of using Egnyte.