function EntryPoint::create

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

Overrides ControllerBase::create

File

core/modules/jsonapi/src/Controller/EntryPoint.php, line 61

Class

EntryPoint
Controller for the API entry point.

Namespace

Drupal\jsonapi\Controller

Code

public static function create(ContainerInterface $container) {
    return new static($container->get('jsonapi.resource_type.repository'), $container->get('current_user'));
}

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