You are here

public function DataProviderDecorator::setLangCode in RESTful 7.2

Sets the language code.

Parameters

string $langcode: The language code.

Overrides DataProviderInterface::setLangCode

File

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

Class

DataProviderDecorator

Namespace

Drupal\restful\Plugin\resource\DataProvider

Code

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