You are here

public function Subscriber::setLangcode in Simplenews 8

Same name and namespace in other branches
  1. 8.2 src/Entity/Subscriber.php \Drupal\simplenews\Entity\Subscriber::setLangcode()
  2. 3.x src/Entity/Subscriber.php \Drupal\simplenews\Entity\Subscriber::setLangcode()

Sets the lang code.

Parameters

string $langcode: The subscribers lang code.

Overrides SubscriberInterface::setLangcode

1 call to Subscriber::setLangcode()
Subscriber::fillFromAccount in src/Entity/Subscriber.php
Fill values from a user account.

File

src/Entity/Subscriber.php, line 144

Class

Subscriber
Defines the simplenews subscriber entity.

Namespace

Drupal\simplenews\Entity

Code

public function setLangcode($langcode) {
  $this
    ->set('langcode', $langcode);
}