You are here

public function CacheDecoratedDataProvider::setLangCode in RESTful 7.2

Sets the language code.

Parameters

string $langcode: The language code.

Overrides DataProviderInterface::setLangCode

File

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

Class

CacheDecoratedDataProvider
Class CacheDecoratedDataProvider.

Namespace

Drupal\restful\Plugin\resource\DataProvider

Code

public function setLangCode($langcode) {
  $this->subject
    ->setLangCode($langcode);
}