You are here

public function DataProvider::addOptions in RESTful 7.2

Adds the options in the provided array to the data provider options.

Parameters

array $options: The array of options for the data provider.

Overrides DataProviderInterface::addOptions

File

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

Class

DataProvider

Namespace

Drupal\restful\Plugin\resource\DataProvider

Code

public function addOptions(array $options) {
  $this->options = array_merge($this->options, $options);
}