You are here

public static function ContextualController::create in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/contextual/src/ContextualController.php \Drupal\contextual\ContextualController::create()
  2. 9 core/modules/contextual/src/ContextualController.php \Drupal\contextual\ContextualController::create()

File

core/modules/contextual/src/ContextualController.php, line 39

Class

ContextualController
Returns responses for Contextual module routes.

Namespace

Drupal\contextual

Code

public static function create(ContainerInterface $container) {
  return new static($container
    ->get('renderer'));
}