You are here

public function PushNotificationsToken::getLanguageCode in Push Notifications 8

Return the entity's language code.

Return value

$string Language code for this entity.

Overrides PushNotificationsTokenInterface::getLanguageCode

File

src/Entity/PushNotificationsToken.php, line 99
Contains \Drupal\push_notifications\Entity\PushNotificationsToken.

Class

PushNotificationsToken
Defines the token entity.

Namespace

Drupal\push_notifications\Entity

Code

public function getLanguageCode() {
  return $this
    ->get('langcode')->value;
}