Neos\Fusion\TypoScriptObjects\CaseImplementation::renderMatcher PHP Method

renderMatcher() protected method

A result value of MATCH_NORESULT means that the condition of the matcher did not match and the case should continue.
protected renderMatcher ( string $matcherKey ) : string
$matcherKey string
return string
    protected function renderMatcher($matcherKey)
    {
        $renderedMatcher = null;
        if (isset($this->properties[$matcherKey]['__objectType'])) {
            // object type already set, so no need to set it
            $renderedMatcher = $this->tsRuntime->render(sprintf('%s/%s', $this->path, $matcherKey));
            return $renderedMatcher;
        } elseif (!is_array($this->properties[$matcherKey])) {
            throw new UnsupportedObjectTypeAtPathException('"Case" TypoScript object only supports nested TypoScript objects; no simple values.', 1372668062);
        } elseif (isset($this->properties[$matcherKey]['__eelExpression'])) {
            throw new UnsupportedObjectTypeAtPathException('"Case" TypoScript object only supports nested TypoScript objects; no Eel expressions.', 1372668077);
        } else {
            // No object type has been set, so we're using Neos.Fusion:Matcher as fallback
            $renderedMatcher = $this->tsRuntime->render(sprintf('%s/%s<Neos.Fusion:Matcher>', $this->path, $matcherKey));
            return $renderedMatcher;
        }
    }