diff --git a/core/modules/block/lib/Drupal/block/Entity/Block.php b/core/modules/block/lib/Drupal/block/Entity/Block.php index 481e190..927ee4a 100644 --- a/core/modules/block/lib/Drupal/block/Entity/Block.php +++ b/core/modules/block/lib/Drupal/block/Entity/Block.php @@ -13,7 +13,6 @@ use Drupal\block\BlockInterface; use Drupal\Core\Config\Entity\ConfigEntityInterface; use Drupal\Core\Config\Entity\EntityWithPluginBagInterface; -use Drupal\Core\Entity\EntityStorageInterface; /** * Defines a Block configuration entity class. @@ -116,7 +115,7 @@ class Block extends ConfigEntityBase implements BlockInterface, EntityWithPlugin } /** - * Overrides \Drupal\Core\Entity\Entity::label(); + * {@inheritdoc} */ public function label() { $settings = $this->get('settings'); @@ -151,15 +150,6 @@ class Block extends ConfigEntityBase implements BlockInterface, EntityWithPlugin /** * {@inheritdoc} */ - public function preSave(EntityStorageInterface $storage) { - parent::preSave($storage); - - $this->set('settings', $this->getPlugin()->getConfiguration()); - } - - /** - * {@inheritdoc} - */ public function settings() { return $this->get('settings'); } @@ -210,7 +200,7 @@ class Block extends ConfigEntityBase implements BlockInterface, EntityWithPlugin } /** - * Sorts active blocks by weight; sorts inactive blocks by name. + * {@inheritdoc} */ public static function sort(ConfigEntityInterface $a, ConfigEntityInterface $b) { // Separate enabled from disabled.