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;
}
}