/** * Filter out Pages that don't match the selector. * * This is applicable to and destructive to the WireArray. * * @param string|Selectors $selectors AttributeSelector string to use as the filter. * @param bool $not Make this a "not" filter? (default is false) * @return WireArray reference to current [filtered] instance * */ protected function filterData($selectors, $not = false) { if (is_string($selectors) && $selectors[0] === '/') { $selectors = "path={$selectors}"; } return parent::filterData($selectors, $not); }
protected function filterData($selectors, $not = false) { $this->preload(); return parent::filterData($selectors, $not); }