You are here

public function DataProvider::setLangCode in RESTful 7.2

Sets the language code.

Parameters

string $langcode: The language code.

Overrides DataProviderInterface::setLangCode

File

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

Class

DataProvider

Namespace

Drupal\restful\Plugin\resource\DataProvider

Code

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