Contao\Filter\SqlFiles::accept PHP Метод

accept() публичный Метод

Check whether the current element of the iterator is acceptable
public accept ( ) : boolean
Результат boolean True if the element is acceptable
    public function accept()
    {
        if ($this->hasChildren()) {
            return true;
        }
        if ($this->current()->getExtension() == 'sql') {
            return true;
        }
        return false;
    }
SqlFiles