You are here

public function RestPermissions::__construct in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/rest/src/RestPermissions.php \Drupal\rest\RestPermissions::__construct()

Constructs a new RestPermissions instance.

Parameters

\Drupal\rest\Plugin\Type\ResourcePluginManager $rest_plugin_manager: The rest resource plugin manager.

\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The config factory.

File

core/modules/rest/src/RestPermissions.php, line 42
Contains \Drupal\rest\RestPermissions.

Class

RestPermissions
Provides rest module permissions.

Namespace

Drupal\rest

Code

public function __construct(ResourcePluginManager $rest_plugin_manager, ConfigFactoryInterface $config_factory) {
  $this->restPluginManager = $rest_plugin_manager;
  $this->configFactory = $config_factory;
}