protected function getArgumentsFromParams($params)
    {
        $args     = array();
        $excludes = array("name", "before", "separator", "after", "fields");

        if (is_array($params)) {
            foreach ($params as $key => $value) {
                if (!in_array($key, $excludes)) {
                    $args[$key] = $value;
                }
            }
        }

        return $args;
    }
protected function getArgumentsFromParams($params)
    {
        $args     = array();
        $excludes = array("name", "before", "separator", "after", "fields");

        if (is_array($params)) {
            foreach ($params as $key => $value) {
                if (!in_array($key, $excludes)) {
                    $args[$key] = $value;
                }
            }
        }

        return $args;
    }
protected function getArgumentsFromParams ( $ params ) { $ args = array ( ) ; $ excludes = array ( "name" , "before" , "separator" , "after" , "fields" ) ; if ( is_array ( $ params ) ) { foreach ( $ params as $ key => $ value ) { if ( ! in_array ( $ key , $ excludes ) ) { $ args [ $ key ] = $ value ; } } } return $ args ; }
Clean the params of the params passed to the hook function or block to feed the arguments of the event
with relevant arguments.

@param   $params

@return array
Clean the params of the params passed to the hook function or block to feed the arguments of the event with relevant arguments .