src/Utility/Search.php
protected function filterFields(array $fields): array
    {
        if (empty($fields)) {
            return [];
        }

        foreach ($fields as $k => $v) {
            if (false !== strpos($v, $this->table->getAlias() . '.')) {
                continue;
            }

            unset($fields[$k]);
        }

        return $fields;
    }
protected function filterFields(array $fields): array
    {
        if (empty($fields)) {
            return [];
        }

        foreach ($fields as $k => $v) {
            if (false !== strpos($v, $this->table->getAlias() . '.')) {
                continue;
            }

            unset($fields[$k]);
        }

        return $fields;
    }
protected function filterFields ( array $ fields ) : array { if ( empty ( $ fields ) ) { return [ ] ; } foreach ( $ fields as $ k => $ v ) { if ( false !== strpos ( $ v , $ this -> table -> getAlias ( ) . '.' ) ) { continue ; } unset ( $ fields [ $ k ] ) ; } return $ fields ; }
Filter only current module fields.

@param mixed[] $fields Search fields
@return mixed[]
Filter only current module fields .