intersect_assoc

The intersect_assoc filter returns an array containing only the values that are in both arrays. The array keys are also used in the comparison.

This filter is unique to Aptuitiv. It is not part of the core Twig functionality.

Arguments

The intersect_assoc filter has the following signature.

intersect_assoc(array)
Argument Description
array The array to intersect with the original value.
This documentation is only for Aptuitiv CMS. Learn more.
Get Started With Aptuitiv