You are here

public static function RestUIController::create in REST UI 8

Injects RestUIManager Service.

Overrides ContainerInjectionInterface::create

File

src/Controller/RestUIController.php, line 54

Class

RestUIController
Controller routines for REST resources.

Namespace

Drupal\restui\Controller

Code

public static function create(ContainerInterface $container) {
  return new static($container
    ->get('plugin.manager.rest'), $container
    ->get('url_generator'), $container
    ->get('entity_type.manager')
    ->getStorage('rest_resource_config'), $container
    ->get('messenger'));
}