Commit 1dc336ea authored by catch's avatar catch
Browse files

fix: #3557268 \Drupal\block\Entity\Block::preSave() triggers deprecations on PHP 8.5

By: @alexpott
By: @smustgrave
(cherry picked from commit b5721e16)
parent 3bce21cf
Loading
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -362,7 +362,7 @@ public function preSave(EntityStorageInterface $storage) {
    // This is done primarily for backwards compatibility support of
    // \Drupal\block\BlockInterface::BLOCK_REGION_NONE.
    $regions = system_region_list($this->theme);
    if (!isset($regions[$this->region]) && $this->status()) {
    if (!isset($this->region, $regions[$this->region]) && $this->status()) {
      $this
        ->setRegion(system_default_region($this->theme))
        ->disable();