public static function getEnabledFilters($om)
    {
        $filters = [];

        if ($om instanceof EntityManagerInterface) {
            $enabledFilters = $om->getFilters()->getEnabledFilters();

            foreach ($enabledFilters as $name => $filter) {
                if (!$filter instanceof EnableFilterInterface
                        || ($filter instanceof EnableFilterInterface && $filter->isEnabled())) {
                    $filters[$name] = $filter;
                }
            }
        }

        return $filters;
    }
public static function getEnabledFilters($om)
    {
        $filters = [];

        if ($om instanceof EntityManagerInterface) {
            $enabledFilters = $om->getFilters()->getEnabledFilters();

            foreach ($enabledFilters as $name => $filter) {
                if (!$filter instanceof EnableFilterInterface
                        || ($filter instanceof EnableFilterInterface && $filter->isEnabled())) {
                    $filters[$name] = $filter;
                }
            }
        }

        return $filters;
    }
public static function getEnabledFilters ( $ om ) { $ filters = [ ] ; if ( $ om instanceof EntityManagerInterface ) { $ enabledFilters = $ om -> getFilters ( ) -> getEnabledFilters ( ) ; foreach ( $ enabledFilters as $ name => $ filter ) { if ( ! $ filter instanceof EnableFilterInterface || ( $ filter instanceof EnableFilterInterface && $ filter -> isEnabled ( ) ) ) { $ filters [ $ name ] = $ filter ; } } } return $ filters ; }
Get the enabled sql filters.

@param null|ObjectManager $om The object manager instance

@return SQLFilter[]
Get the enabled sql filters .