Contao\Filter\SyncExclude::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()
    {
        // The resource is to be ignored
        if (strncmp($this->current()->getFilename(), '.', 1) === 0) {
            return false;
        }
        $strRelpath = str_replace(TL_ROOT . '/', '', $this->current()->getPathname());
        // The resource is an exempt folder
        if (in_array($strRelpath, $this->arrExempt)) {
            return false;
        }
        // The resource is accepted
        return true;
    }