Commit 4e50b99d authored by Derek Wright's avatar Derek Wright
Browse files

Revert "[#2570593]: Add a magic EntityStorageBase::__get() method to trigger...

Revert "[#2570593]: Add a magic EntityStorageBase::__get() method to trigger deprecation on direct access to entityClass."

This reverts commit 5e949ffc.
parent 5e949ffc
......@@ -106,19 +106,6 @@ public function getEntityClass(?string $bundle = NULL): string {
return $this->entityClass;
}
/**
* Warns subclasses not to directly access the protected entityClass member.
*
* @param string $name
* The name of the property to get.
*/
public function __get($name) {
if ($name === 'entityClass') {
trigger_error('Accessing the entityClass property directly is deprecated in drupal:9.3.0. Use ::getEntityClass() instead. See https://www.drupal.org/node/3191609', E_USER_DEPRECATED);
return $this->getEntityClass();
}
}
/**
* {@inheritdoc}
*/
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment