Presenter Output
This section will show you how to use the decorated value provided by the \Anomaly\StateFieldType\StateFieldTypePresenter
class.
StateFieldTypePresenter::code()
The code
method returns the selected state's ISO code.
Returns: string
Example
$decorated->example->code();
Twig
{{ decorated.example.code() }}
StateFieldTypePresenter::name()
The name
method returns the name of the selected state.
Returns: string
Example
$decorated->example->name();
Twig
{{ decorated.example.name() }}