diff --git a/core/modules/block/src/Entity/Block.php b/core/modules/block/src/Entity/Block.php index 3446097..233f164 100644 --- a/core/modules/block/src/Entity/Block.php +++ b/core/modules/block/src/Entity/Block.php @@ -85,6 +85,13 @@ class Block extends ConfigEntityBase implements BlockInterface, EntityWithPlugin protected $pluginBag; /** + * The theme that includes the block plugin for this entity. + * + * @var string + */ + protected $theme; + + /** * {@inheritdoc} */ public function getPlugin() { @@ -105,7 +112,6 @@ public function getTheme() { return $this->theme; } - /** * Encapsulates the creation of the block's PluginBag. * @@ -216,7 +222,7 @@ public function getRegion() { * {@inheritdoc} */ public function setRegion($region) { - $this->weight = (string) $region; + $this->weight = $region; return $this; } @@ -231,7 +237,7 @@ public function getWeight() { * {@inheritdoc} */ public function setWeight($weight) { - $this->weight = (int) $weight; + $this->weight = $weight; return $this; }