You are here

public function DataProviderEntityDecorator::__construct in RESTful 7.2

Contstructs a DataProviderDecorator class.

Parameters

DataProviderEntityInterface $decorated: The decorated data provider.

Overrides DataProviderDecorator::__construct

File

src/Plugin/resource/DataProvider/DataProviderEntityDecorator.php, line 27
Contains \Drupal\restful\Plugin\resource\DataProvider\DataProviderEntityDecorator.

Class

DataProviderEntityDecorator

Namespace

Drupal\restful\Plugin\resource\DataProvider

Code

public function __construct(DataProviderEntityInterface $decorated) {

  // We are overriding the constructor only for the
  // DataProviderEntityInterface type hinting.
  parent::__construct($decorated);
}