src/Form/Base.php
protected function searchAndReplacePlaceHolders(array $element, array $placeHolders)
    {
        array_walk_recursive($element, function(&$v, $k, $ph){
            if (is_string($v) && array_key_exists($v, $ph)) {
                $v = $ph[$v];
            }
        }, $placeHolders);
        return $element;
    }
protected function searchAndReplacePlaceHolders(array $element, array $placeHolders)
    {
        array_walk_recursive($element, function(&$v, $k, $ph){
            if (is_string($v) && array_key_exists($v, $ph)) {
                $v = $ph[$v];
            }
        }, $placeHolders);
        return $element;
    }
protected function searchAndReplacePlaceHolders ( array $ element , array $ placeHolders ) { array_walk_recursive ( $ element , function ( & $ v , $ k , $ ph ) { if ( is_string ( $ v ) && array_key_exists ( $ v , $ ph ) ) { $ v = $ ph [ $ v ] ; } } , $ placeHolders ) ; return $ element ; }
Search and replace occurences of place holders in an element

@param array $element
@param array $placeholders
@return array
Search and replace occurences of place holders in an element