protected static function DataProvider::getLanguage in RESTful 7.2
Gets the global language.
Return value
string The language code.
2 calls to DataProvider::getLanguage()
- DataProvider::__construct in src/
Plugin/ resource/ DataProvider/ DataProvider.php - Constructor.
- DataProviderResource::init in src/
Plugin/ resource/ DataProvider/ DataProviderResource.php - Creates a new DataProviderResource object from the resource info.
File
- src/
Plugin/ resource/ DataProvider/ DataProvider.php, line 514 - Contains \Drupal\restful\Plugin\resource\DataProvider\DataProvider.
Class
Namespace
Drupal\restful\Plugin\resource\DataProviderCode
protected static function getLanguage() {
// Move to its own method to allow unit testing.
return $GLOBALS['language']->language;
}