get_featured_collection_category_branch_by_leaf()

Description

Get to the root of the branch starting from the leaf featured collection

Parameters

ColumnTypeDefaultDescription
$ref integer Collection ref which is considered a leaf of the tree
$fcs array List of all featured collections

Return

array Branch path structure starting from root to the leaf

Location

include/collections_functions.php lines 5359 to 5366

Definition

 
function get_featured_collection_category_branch_by_leaf(int $ref, array $fcs)
{
    if (empty(
$fcs)) {
        
$fcs get_all_featured_collections();
    }

    return 
compute_node_branch_path($fcs$ref);
}

This article was last updated 18th June 2025 20:35 Europe/London time based on the source file dated 13th June 2025 14:00 Europe/London time.