Group<T>
Represents a group that can contain multiple users.
Instance Methods
| Returns | Signature and Description |
|---|---|
string | Gets the entity's display name. |
T | getId()Gets the entity ID. |
string | getSlug()Gets the URL slug for this entity. |
DateTimeZone | Gets the TimeZone for this entity. |
bool | Gets whether this group is disabled. |
array<string,mixed> | toArray()Converts this entity to an array. |
Method Details
getDisplayName
Inherited from Owner
getDisplayName()Gets the entity's display name.
| Type | Description |
|---|---|
string | The entity's display name |
getId
Inherited from Owner
getId()Gets the entity ID.
| Type | Description |
|---|---|
T | The entity's ID |
getSlug
Inherited from Owner
getSlug()Gets the URL slug for this entity.
| Type | Description |
|---|---|
string | The URL slug |
getTimeZone
Inherited from Owner
getTimeZone()Gets the TimeZone for this entity.
If the entity belongs to a parent record, e.g. a user belonging to a group, the parent value should be returned if none is available on this entity.
Should default to system time zone if none is available.
| Type | Description |
|---|---|
DateTimeZone | The owner's time zone |
isDisabled
Inherited from Owner
isDisabled()Gets whether this group is disabled.
| Type | Description |
|---|---|
bool | Whether the group is disabled |
toArray
Inherited from Owner
toArray()Converts this entity to an array.
| Type | Description |
|---|---|
array<string,mixed> | The array version |