You are here

public function RestfulEntityBaseMultipleBundles::__construct in RESTful 7

Constructs a RestfulDataProviderEFQ object.

Parameters

array $plugin: Plugin definition.

RestfulAuthenticationManager $auth_manager: (optional) Injected authentication manager.

DrupalCacheInterface $cache_controller: (optional) Injected cache backend.

string $language: (optional) The language to return items in.

Throws

RestfulServerConfigurationException

Overrides RestfulDataProviderEFQ::__construct

File

plugins/restful/RestfulEntityBaseMultipleBundles.php, line 30
Contains RestfulEntityBaseMultipleBundles.

Class

RestfulEntityBaseMultipleBundles
@file Contains RestfulEntityBaseMultipleBundles.

Code

public function __construct(array $plugin, \RestfulAuthenticationManager $auth_manager = NULL, \DrupalCacheInterface $cache_controller = NULL, $language = NULL) {
  parent::__construct($plugin, $auth_manager, $cache_controller, $language);
  if (!empty($plugin['bundles'])) {
    $this->bundles = $plugin['bundles'];
  }
  $this->authenticationManager = $auth_manager ? $auth_manager : new \RestfulAuthenticationManager();
  $this->cacheController = $cache_controller ? $cache_controller : $this
    ->newCacheObject();
}