function ContentEntityStorageBase::__get

Warns about deprecated/removed properties.

Parameters

string $name: The property to get the value of.

Return value

mixed The value of the deprecated/removed $name property.

File

core/lib/Drupal/Core/Entity/ContentEntityStorageBase.php, line 1492

Class

ContentEntityStorageBase
Base class for content entity storage handlers.

Namespace

Drupal\Core\Entity

Code

public function __get(string $name) {
  if ($name === 'latestRevisionIds') {
    @trigger_error('Getting the static cache of latest revision IDs is deprecated in drupal:11.3.0 and is removed from drupal:12.0.0. You can retrieve it from the \'entity.memory_cache\' service instead. See https://www.drupal.org/node/3535160', E_USER_DEPRECATED);
    return [];
  }
  trigger_error('Undefined property ' . __CLASS__ . "::\${$name}", E_USER_WARNING);
  return NULL;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.