public function Subscriber::getLangcode in Simplenews 3.x
Same name and namespace in other branches
- 8.2 src/Entity/Subscriber.php \Drupal\simplenews\Entity\Subscriber::getLangcode()
- 8 src/Entity/Subscriber.php \Drupal\simplenews\Entity\Subscriber::getLangcode()
Returns the lang code.
Return value
string The subscribers lang code.
Overrides SubscriberInterface::getLangcode
File
- src/
Entity/ Subscriber.php, line 127
Class
- Subscriber
- Defines the simplenews subscriber entity.
Namespace
Drupal\simplenews\EntityCode
public function getLangcode() {
return $this
->get('langcode')->value;
}