Contao\Filter\SqlFiles::accept PHP Method

accept() public method

Check whether the current element of the iterator is acceptable
public accept ( ) : boolean
return 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