function ResourceObject::getLanguage
Same name in other branches
- 10 core/modules/jsonapi/src/JsonApiResource/ResourceObject.php \Drupal\jsonapi\JsonApiResource\ResourceObject::getLanguage()
- 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\JsonApiResourceCode
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.