function ContextualController::create

Same name in other branches
  1. 8.9.x core/modules/contextual/src/ContextualController.php \Drupal\contextual\ContextualController::create()
  2. 10 core/modules/contextual/src/ContextualController.php \Drupal\contextual\ContextualController::create()
  3. 11.x core/modules/contextual/src/ContextualController.php \Drupal\contextual\ContextualController::create()

Overrides ContainerInjectionInterface::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'));
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.