BadgeTwigExtension
final class BadgeTwigExtension extends AbstractExtension (View source)
Twig functions for record and zone type badge classes, zone type labels and the autoprimaries wording.
Constants
| private RECORD_TYPE_CLASSES |
|
| private ZONE_TYPE_CLASSES |
|
Methods
array
getFunctions()
No description
string
getRecordTypeClass(string|null $type)
No description
string
getZoneTypeClass(string $type)
No description
bool
isZoneReadOnly(string|null $type)
Secondary and Consumer zones replicate records from a primary, so their records are read-only - templates hide edit controls for them.
string
getZoneTypeLabel(array $context, string|null $type)
No description
string
getAutoprimariesLabel(array $context, string $key = 'plural')
No description
Details
array
getFunctions()
No description
string
getRecordTypeClass(string|null $type)
No description
string
getZoneTypeClass(string $type)
No description
bool
isZoneReadOnly(string|null $type)
Secondary and Consumer zones replicate records from a primary, so their records are read-only - templates hide edit controls for them.
string
getZoneTypeLabel(array $context, string|null $type)
No description
string
getAutoprimariesLabel(array $context, string $key = 'plural')
No description