src/Forms/TreeDropdownField.php
public function filterMarking($node)
    {
        $callback = $this->getFilterFunction();
        if ($callback && !call_user_func($callback, $node)) {
            return false;
        }

        if ($this->search) {
            return isset($this->searchIds[$node->ID]) && $this->searchIds[$node->ID] ? true : false;
        }

        return true;
    }
public function filterMarking($node)
    {
        $callback = $this->getFilterFunction();
        if ($callback && !call_user_func($callback, $node)) {
            return false;
        }

        if ($this->search) {
            return isset($this->searchIds[$node->ID]) && $this->searchIds[$node->ID] ? true : false;
        }

        return true;
    }
public function filterMarking ( $ node ) { $ callback = $ this -> getFilterFunction ( ) ; if ( $ callback && ! call_user_func ( $ callback , $ node ) ) { return false ; } if ( $ this -> search ) { return isset ( $ this -> searchIds [ $ node -> ID ] ) && $ this -> searchIds [ $ node -> ID ] ? true : false ; } return true ; }
Marking public function for the tree, which combines different filters sensibly.
If a filter function has been set, that will be called. And if search text is set,
filter on that too. Return true if all applicable conditions are true, false otherwise.

@param DataObject $node
@return bool
Marking public function for the tree which combines different filters sensibly . If a filter function has been set that will be called . And if search text is set filter on that too . Return true if all applicable conditions are true false otherwise .