function RenderExampleController::create

Same name in other branches
  1. 8.x-1.x render_example/src/Controller/RenderExampleController.php \Drupal\render_example\Controller\RenderExampleController::create()
  2. 4.0.x modules/render_example/src/Controller/RenderExampleController.php \Drupal\render_example\Controller\RenderExampleController::create()

Overrides ControllerBase::create

File

modules/render_example/src/Controller/RenderExampleController.php, line 41

Class

RenderExampleController
Provides module description page and examples of building render arrays.

Namespace

Drupal\render_example\Controller

Code

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