Parsedown::elementApplyRecursive( $closure,  $Element )

Description

Source

File: bp-help/vendors/parsedown/Parsedown.php

1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
protected function elementApplyRecursive($closure, array $Element)
{
    $Element = call_user_func($closure, $Element);
 
    if (isset($Element['elements']))
    {
        $Element['elements'] = $this->elementsApplyRecursive($closure, $Element['elements']);
    }
    elseif (isset($Element['element']))
    {
        $Element['element'] = $this->elementApplyRecursive($closure, $Element['element']);
    }
 
    return $Element;
}

Questions?

We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.