function EntityArgument::__get
Allows to access deprecated/removed properties.
This method must be public.
File
-
core/
modules/ views/ src/ Plugin/ views/ argument/ EntityArgument.php, line 103
Class
- EntityArgument
- Argument handler to accept an entity ID value.
Namespace
Drupal\views\Plugin\views\argumentCode
public function __get($name) {
if (isset($this->deprecatedStorageProperties[$name])) {
$storage_name = $this->deprecatedStorageProperties[$name];
$class_name = static::class;
// phpcs:ignore Drupal.Semantics.FunctionTriggerError
@trigger_error("The property {$name} ({$storage_name} storage service) is deprecated in {$class_name} and will be removed before Drupal 11.0.0. See https://www.drupal.org/node/3441945", E_USER_DEPRECATED);
return $this->entityTypeManager
->getStorage($storage_name);
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.