public static function isEnabled($om, $name)
    {
        if ($om instanceof EntityManagerInterface) {
            $sqlFilters = $om->getFilters();

            if ($sqlFilters->isEnabled($name)) {
                $filter = $sqlFilters->getFilter($name);

                return !$filter instanceof EnableFilterInterface
                    || ($filter instanceof EnableFilterInterface && $filter->isEnabled());
            }
        }

        return false;
    }
public static function isEnabled($om, $name)
    {
        if ($om instanceof EntityManagerInterface) {
            $sqlFilters = $om->getFilters();

            if ($sqlFilters->isEnabled($name)) {
                $filter = $sqlFilters->getFilter($name);

                return !$filter instanceof EnableFilterInterface
                    || ($filter instanceof EnableFilterInterface && $filter->isEnabled());
            }
        }

        return false;
    }
public static function isEnabled ( $ om , $ name ) { if ( $ om instanceof EntityManagerInterface ) { $ sqlFilters = $ om -> getFilters ( ) ; if ( $ sqlFilters -> isEnabled ( $ name ) ) { $ filter = $ sqlFilters -> getFilter ( $ name ) ; return ! $ filter instanceof EnableFilterInterface || ( $ filter instanceof EnableFilterInterface && $ filter -> isEnabled ( ) ) ; } } return false ; }
Check if the filter is enabled.

@param null|ObjectManager $om   The object manager instance
@param string             $name The filter name

@return bool
Check if the filter is enabled .