Commit 14f5af17 authored by Sascha Grossenbacher's avatar Sascha Grossenbacher
Browse files

Issue #3268094 by Mschudders: PHP 8.1 deprecated functions + General fix

parent bbe3ee22
Loading
Loading
Loading
Loading
+4 −0
Changes for src/PathautoState.php: 4 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -67,6 +67,10 @@ class PathautoState extends TypedData {
    if ($this->originalValue === NULL) {
      // If no value has been set or loaded yet, try to load a value if this
      // entity has already been saved.
      if ($this->parent->getEntity()->isNew()) {
        return NULL;
      }

      $this->originalValue = \Drupal::keyValue($this->getCollection())
        ->get(static::getPathautoStateKey($this->parent->getEntity()->id()));
    }