function ContentEntityStorageBase::__get

Warns about deprecated/removed properties.

File

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

Class

ContentEntityStorageBase
Base class for content entity storage handlers.

Namespace

Drupal\Core\Entity

Code

public function __get(string $name) : mixed {
  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 [];
  }
  return $this->{$name} ?? NULL;
}

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