public function FormStateValueResolver::resolve in MongoDB 8.2
File
- modules/
mongodb_watchdog/ src/ Controller/ ArgumentResolver/ FormStateValueResolver.php, line 32
Class
- FormStateValueResolver
- Yields a form_state argument for FormStateInterface $formState arguments.
Namespace
Drupal\mongodb_watchdog\Controller\ArgumentResolverCode
public function resolve(Request $request, ArgumentMetadata $argument) {
$formState = $request->attributes
->has(static::NAME_LEGACY) ? $request->attributes
->get(static::NAME_LEGACY) : NULL;
(yield $formState);
}