function ConfigDependencies::create

Same name in other branches
  1. 9 core/modules/rest/src/Entity/ConfigDependencies.php \Drupal\rest\Entity\ConfigDependencies::create()
  2. 10 core/modules/rest/src/Entity/ConfigDependencies.php \Drupal\rest\Entity\ConfigDependencies::create()
  3. 11.x core/modules/rest/src/Entity/ConfigDependencies.php \Drupal\rest\Entity\ConfigDependencies::create()

Overrides ContainerInjectionInterface::create

File

core/modules/rest/src/Entity/ConfigDependencies.php, line 46

Class

ConfigDependencies
Calculates rest resource config dependencies.

Namespace

Drupal\rest\Entity

Code

public static function create(ContainerInterface $container) {
    return new static($container->getParameter('serializer.format_providers'), $container->getParameter('authentication_providers'));
}

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