Skip to content

Commit

Permalink
Add getCustomAttributesBagFromArray
Browse files Browse the repository at this point in the history
  • Loading branch information
lrljoe authored Sep 29, 2024
1 parent 673cc58 commit 84fae34
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/Traits/Core/HasCustomAttributes.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,10 @@ public function setCustomAttributes(string $propertyName, array $customAttribute

return $this;
}

public function getCustomAttributesBagFromArray(array $attributesArray): ComponentAttributeBag
{
return new ComponentAttributeBag($attributesArray);
}

}

0 comments on commit 84fae34

Please sign in to comment.