Skip to content

Commit 84fae34

Browse files
authored
Add getCustomAttributesBagFromArray
1 parent 673cc58 commit 84fae34

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/Traits/Core/HasCustomAttributes.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,4 +46,10 @@ public function setCustomAttributes(string $propertyName, array $customAttribute
4646

4747
return $this;
4848
}
49+
50+
public function getCustomAttributesBagFromArray(array $attributesArray): ComponentAttributeBag
51+
{
52+
return new ComponentAttributeBag($attributesArray);
53+
}
54+
4955
}

0 commit comments

Comments
 (0)