You are here

public function LingotekProfileUsage::__get in Lingotek Translation 8.2

Alows to access deprecated/removed properties.

This method must be public.

Overrides DeprecatedServicePropertyTrait::__get

File

src/LingotekProfileUsage.php, line 27

Class

LingotekProfileUsage
Service for checking Lingotek profiles usage.

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;
  }
}