Skip to content
PHP Ecosystem
Explore

Label

API reference › Form Model › Attribute › Label

final readonly classUIAwesome\FormModel\Attribute\Label
Sourcesrc/Attribute/Label.php

Defines a display label for a form-model property.

Usage example:

#[Label('Email address')]
public string $email = '';
PropertyTypeDescriptionDefined by
$value readonly constructorstringDisplay label for the field.Label
MethodDescriptionDefined by
__construct()Creates field label metadata.Label
public function __construct(string $value)

Creates field label metadata.

Parameters

ParameterTypeDescription
$valuestringDisplay label for the field.