Verified Commit 91e19e5c authored by Alex Pott's avatar Alex Pott
Browse files

Issue #3017710 by ndobromirov, joseph.olstad, Wim Leers, alexpott, Berdir,...

Issue #3017710 by ndobromirov, joseph.olstad, Wim Leers, alexpott, Berdir, borisson_: Drupal\Core\TypedData\TypedData::getPropertyPath() is slow
parent aeac2967
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -175,7 +175,7 @@ public function getPropertyPath() {
      // The property path of this data object is the parent's path appended
      // by this object's name.
      $prefix = $this->parent->getPropertyPath();
      return (strlen($prefix) ? $prefix . '.' : '') . $this->name;
      return $prefix !== '' ? "{$prefix}.{$this->name}" : $this->name;
    }
    // If no parent is set, this is the root of the data tree. Thus the property
    // path equals the name of this data object.