diff --git a/core/lib/Drupal/Core/Entity/EntityDecorator.php b/core/lib/Drupal/Core/Entity/EntityDecorator.php index ef54c56a1c..a5239ace14 100644 --- a/core/lib/Drupal/Core/Entity/EntityDecorator.php +++ b/core/lib/Drupal/Core/Entity/EntityDecorator.php @@ -27,7 +27,7 @@ * The entity being decorated. */ public function __construct(EntityInterface $subject) { - $this->subject = $subject instanceof static ? $subject->getEntity() : $subject; + $this->subject; } /** diff --git a/core/modules/views_ui/src/ViewUI.php b/core/modules/views_ui/src/ViewUI.php index afda5b70d6..5c5634672e 100644 --- a/core/modules/views_ui/src/ViewUI.php +++ b/core/modules/views_ui/src/ViewUI.php @@ -972,6 +972,30 @@ public function status() { return $this->subject->status(); } + /** + * {@inheritdoc} + */ + public static function preCreate(EntityStorageInterface $storage, array &$values) { + } + + /** + * {@inheritdoc} + */ + public static function preDelete(EntityStorageInterface $storage, array $entities) { + } + + /** + * {@inheritdoc} + */ + public static function postDelete(EntityStorageInterface $storage, array $entities) { + } + + /** + * {@inheritdoc} + */ + public static function postLoad(EntityStorageInterface $storage, array &$entities) { + } + /** * {@inheritdoc} */