Drupal/MannequinDrupalTwigExtension.php
public function without($element)
    {
        if ($element instanceof \ArrayAccess) {
            $filtered_element = clone $element;
        } else {
            $filtered_element = $element;
        }
        $args = func_get_args();
        unset($args[0]);
        foreach ($args as $arg) {
            if (isset($filtered_element[$arg])) {
                unset($filtered_element[$arg]);
            }
        }

        return $filtered_element;
    }
public function without($element)
    {
        if ($element instanceof \ArrayAccess) {
            $filtered_element = clone $element;
        } else {
            $filtered_element = $element;
        }
        $args = func_get_args();
        unset($args[0]);
        foreach ($args as $arg) {
            if (isset($filtered_element[$arg])) {
                unset($filtered_element[$arg]);
            }
        }

        return $filtered_element;
    }
public function without ( $ element ) { if ( $ element instanceof \ ArrayAccess ) { $ filtered_element = clone $ element ; } else { $ filtered_element = $ element ; } $ args = func_get_args ( ) ; unset ( $ args [ 0 ] ) ; foreach ( $ args as $ arg ) { if ( isset ( $ filtered_element [ $ arg ] ) ) { unset ( $ filtered_element [ $ arg ] ) ; } } return $ filtered_element ; }
This is a carbon copy of the drupal Twig without filter.


@param $element

@return \ArrayAccess
This is a carbon copy of the drupal Twig without filter .