Neos\Flow\Mvc\Routing\RouterCachingService::extractUuids PHP Method

extractUuids() protected method

Helper method to generate tags by taking all UUIDs contained in the given $routeValues or $matchResults
protected extractUuids ( array $values ) : array
$values array
return array
    protected function extractUuids(array $values)
    {
        $uuids = [];
        foreach ($values as $value) {
            if (is_string($value)) {
                if (preg_match(UuidValidator::PATTERN_MATCH_UUID, $value) !== 0) {
                    $uuids[] = $value;
                }
            } elseif (is_array($value)) {
                $uuids = array_merge($uuids, $this->extractUuids($value));
            }
        }
        return $uuids;
    }