Skip to content
Snippets Groups Projects
Commit d5bc3661 authored by Reiter, Christoph's avatar Reiter, Christoph :snake:
Browse files

GetAvailableAttributesEvent: add addAttribute()

The common case is that users want to add new attributes, so make
this case easier.
parent aa19c234
No related branches found
No related tags found
No related merge requests found
Pipeline #211983 passed
......@@ -41,4 +41,9 @@ class GetAvailableAttributesEvent extends Event
{
$this->attributes = $attributes;
}
public function addAttribute(string $name): void
{
$this->attributes[] = $name;
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment