This documentation describes unreleased changes on the main branch.

#[Label]

Attribute on parameters and properties.

use Saij\WpAppFramework\Value\Label;

The label of a value in the editor: the inspector control, or the placeholder of an inline field. Without it, the label is derived from the parameter name ("imageId" becomes "Image id").

Arguments

#[Label(string $label)]
ParameterTypeDefaultDescription
labelstringrequiredThe label, e.g. Background image.