You are here

public function LanguageLocaleMapper::__get in Lingotek Translation 8.2

Alows to access deprecated/removed properties.

This method must be public.

Overrides DeprecatedServicePropertyTrait::__get

File

src/LanguageLocaleMapper.php, line 23

Class

LanguageLocaleMapper

Namespace

Drupal\lingotek

Code

public function __get($name) {
  if (isset($this->deprecatedProperties[$name])) {
    $service_name = $this->deprecatedProperties[$name];
    $class_name = static::class;
    @trigger_error("The property {$name} ({$service_name} service) is deprecated in {$class_name} and will be removed before Lingotek 9.x-1.0", E_USER_DEPRECATED);
    return NULL;
  }
}