You are here

protected function RestResourceConfig::getRestResourceDependencies in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/rest/src/Entity/RestResourceConfig.php \Drupal\rest\Entity\RestResourceConfig::getRestResourceDependencies()
  2. 10 core/modules/rest/src/Entity/RestResourceConfig.php \Drupal\rest\Entity\RestResourceConfig::getRestResourceDependencies()

Returns the REST resource dependencies.

Return value

\Drupal\rest\Entity\ConfigDependencies

File

core/modules/rest/src/Entity/RestResourceConfig.php, line 243

Class

RestResourceConfig
Defines a RestResourceConfig configuration entity class.

Namespace

Drupal\rest\Entity

Code

protected function getRestResourceDependencies() {
  return \Drupal::service('class_resolver')
    ->getInstanceFromDefinition(ConfigDependencies::class);
}