{% import '@lib/di.twig' as di %} 'alpha', '2' => 'beta', '3' => 'gamma', // NULL will trigger 404 HTTP error. default => NULL, }; } /** * {@inheritdoc} */ public function applies($definition, $name, Route $route): bool { return isset($definition['type']) && $definition['type'] === 'example'; } }