function ResourceObject::getLanguage

Same name in other branches
  1. 9 core/modules/jsonapi/src/JsonApiResource/ResourceObject.php \Drupal\jsonapi\JsonApiResource\ResourceObject::getLanguage()
  2. 11.x core/modules/jsonapi/src/JsonApiResource/ResourceObject.php \Drupal\jsonapi\JsonApiResource\ResourceObject::getLanguage()

Gets the ResourceObject's language.

Return value

\Drupal\Core\Language\LanguageInterface The resource language.

File

core/modules/jsonapi/src/JsonApiResource/ResourceObject.php, line 178

Class

ResourceObject
Represents a JSON:API resource object.

Namespace

Drupal\jsonapi\JsonApiResource

Code

public function getLanguage() : LanguageInterface {
    return $this->language;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.