function ConfigDependencies::__construct

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

Creates a new ConfigDependencies instance.

Parameters

string[] $format_providers: The serialization format providers, keyed by format.

string[] $auth_providers: The authentication providers, keyed by ID.

File

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

Class

ConfigDependencies
Calculates rest resource config dependencies.

Namespace

Drupal\rest\Entity

Code

public function __construct(array $format_providers, array $auth_providers) {
    $this->formatProviders = $format_providers;
    $this->authProviders = $auth_providers;
}

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