diff --git a/core/modules/node/lib/Drupal/node/NodeBCDecorator.php b/core/modules/node/lib/Drupal/node/NodeBCDecorator.php deleted file mode 100644 index 77694fc..0000000 --- a/core/modules/node/lib/Drupal/node/NodeBCDecorator.php +++ /dev/null @@ -1,135 +0,0 @@ -decorated->setTitle($title); - } - - /** - * {@inheritdoc} - */ - public function getCreatedTime() { - return $this->decorated->getCreatedTime(); - } - - /** - * {@inheritdoc} - */ - public function setCreatedTime($timestamp) { - return $this->decorated->setCreatedTime($timestamp); - } - - /** - * {@inheritdoc} - */ - public function getChangedTime() { - return $this->decorated->getChangedTime(); - } - - /** - * {@inheritdoc} - */ - public function isPromoted() { - return $this->decorated->isPromoted(); - } - - /** - * {@inheritdoc} - */ - public function setPromoted($promoted) { - $this->decorated->setPromoted($promoted); - } - - /** - * {@inheritdoc} - */ - public function isSticky() { - return $this->decorated->isSticky(); - } - - /** - * {@inheritdoc} - */ - public function setSticky($sticky) { - $this->decorated->setSticky($sticky); - } - /** - * {@inheritdoc} - */ - public function getAuthor() { - return $this->decorated->getAuthor(); - } - - /** - * {@inheritdoc} - */ - public function getAuthorId() { - return $this->decorated->getAuthorId(); - } - - /** - * {@inheritdoc} - */ - public function setAuthorId($uid) { - $this->decorated->setAuthorId($uid); - } - - /** - * {@inheritdoc} - */ - public function isPublished() { - return $this->decorated->isPublished(); - } - - /** - * {@inheritdoc} - */ - public function setPublished($published) { - $this->decorated->setPublished($published); - } - - /** - * {@inheritdoc} - */ - public function getRevisionCreationTime() { - return $this->decorated->getRevisionCreationTime(); - } - - /** - * {@inheritdoc} - */ - public function setRevisionCreationTime($timestamp) { - return $this->decorated->setRevisionCreationTime($timestamp); - } - - /** - * {@inheritdoc} - */ - public function getRevisionAuthor() { - return $this->decorated->getRevisionAuthor(); - } - - /** - * {@inheritdoc} - */ - public function setRevisionAuthorId($uid) { - return $this->decorated->setRevisionAuthorId($uid); - } - -} diff --git a/core/modules/node/lib/Drupal/node/Plugin/Core/Entity/Node.php b/core/modules/node/lib/Drupal/node/Plugin/Core/Entity/Node.php index 14e9d2f..68b84a6 100644 --- a/core/modules/node/lib/Drupal/node/Plugin/Core/Entity/Node.php +++ b/core/modules/node/lib/Drupal/node/Plugin/Core/Entity/Node.php @@ -12,7 +12,6 @@ use Drupal\Core\Entity\Annotation\EntityType; use Drupal\Core\Annotation\Translation; use Drupal\node\NodeInterface; -use Drupal\node\NodeBCDecorator; /** * Defines the node entity class. @@ -123,17 +122,6 @@ public function postSave(EntityStorageControllerInterface $storage_controller, $ /** * {@inheritdoc} */ - public function getBCEntity() { - if (!isset($this->bcEntity)) { - $this->getPropertyDefinitions(); - $this->bcEntity = new NodeBCDecorator($this, $this->fieldDefinitions); - } - return $this->bcEntity; - } - - /** - * {@inheritdoc} - */ public static function preDelete(EntityStorageControllerInterface $storage_controller, array $entities) { if (module_exists('search')) { foreach ($entities as $id => $entity) { diff --git a/core/modules/node/lib/Drupal/node/Tests/NodeFieldMultilingualTestCase.php b/core/modules/node/lib/Drupal/node/Tests/NodeFieldMultilingualTestCase.php index 2c49336..c66865e 100644 --- a/core/modules/node/lib/Drupal/node/Tests/NodeFieldMultilingualTestCase.php +++ b/core/modules/node/lib/Drupal/node/Tests/NodeFieldMultilingualTestCase.php @@ -82,7 +82,7 @@ function testMultilingualNodeForm() { $this->drupalPost('node/add/page', $edit, t('Save')); // Check that the node exists in the database. - $node = $this->drupalGetNodeByTitle($edit[$title_key])->getNGEntity(); + $node = $this->drupalGetNodeByTitle($edit[$title_key]); $this->assertTrue($node, 'Node found in database.'); $this->assertTrue($node->language()->id == $langcode && $node->body->value == $body_value, 'Field language correctly set.'); @@ -94,7 +94,7 @@ function testMultilingualNodeForm() { 'langcode' => $langcode, ); $this->drupalPost(NULL, $edit, t('Save')); - $node = $this->drupalGetNodeByTitle($edit[$title_key], TRUE)->getNGEntity(); + $node = $this->drupalGetNodeByTitle($edit[$title_key], TRUE); $this->assertTrue($node, 'Node found in database.'); $this->assertTrue($node->language()->id == $langcode && $node->body->value == $body_value, 'Field language correctly changed.');