You are here

public function CitationStyler::setLanguageCode in Bibliography & Citation 8

Same name and namespace in other branches
  1. 2.0.x src/CitationStyler.php \Drupal\bibcite\CitationStyler::setLanguageCode()

Set language code.

Parameters

string $lang_code: Language code.

Return value

\Drupal\bibcite\CitationStylerInterface The called Styler object.

Overrides CitationStylerInterface::setLanguageCode

File

src/CitationStyler.php, line 182

Class

CitationStyler
Render CSL data to bibliographic citation.

Namespace

Drupal\bibcite

Code

public function setLanguageCode($lang_code) {

  // @todo M? $this->langCode maybe?
  $this->lang = $lang_code;
  return $this;
}