diff --git a/core/lib/Drupal/Core/Template/Attribute.php b/core/lib/Drupal/Core/Template/Attribute.php index deeb549..f2cbc9a 100644 --- a/core/lib/Drupal/Core/Template/Attribute.php +++ b/core/lib/Drupal/Core/Template/Attribute.php @@ -172,9 +172,7 @@ public function addClass() { */ public function setAttribute($attribute, $value) { // If attribute key exists we can set attribute. - if ($attribute) { $this->offsetSet($attribute, $value); - } return $this; }