protected function mergeAsGroup(array $action, $as = null)
    {
        if (isset($as) && ! empty($as)) {
            if (isset($action['as'])) {
                $action['as'] = $as.'.'.$action['as'];
            } else {
                $action['as'] = $as;
            }
        }

        return $action;
    }
protected function mergeAsGroup(array $action, $as = null)
    {
        if (isset($as) && ! empty($as)) {
            if (isset($action['as'])) {
                $action['as'] = $as.'.'.$action['as'];
            } else {
                $action['as'] = $as;
            }
        }

        return $action;
    }
protected function mergeAsGroup ( array $ action , $ as = null ) { if ( isset ( $ as ) && ! empty ( $ as ) ) { if ( isset ( $ action [ 'as' ] ) ) { $ action [ 'as' ] = $ as . '.' . $ action [ 'as' ] ; } else { $ action [ 'as' ] = $ as ; } } return $ action ; }
Merge the as group into the action.

@param  array $action
@param  string $as
@return array
Merge the as group into the action .