phplib/Search/ES.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

namespace FOO;

class ES_Search extends Elasticsearch_Search {
    public static $TYPE = 'es';

    public static function getSources() {
        $sources = [];
        foreach(parent::getSources() as $source) {
            if($source != 'alerts') {
                $sources[] = $source;
            }
        }
        return $sources;
    }
}