function OptionsEnumTrait::label

Gets the label for this enum case.

File

core/lib/Drupal/Core/Utility/OptionsEnumTrait.php, line 15

Class

OptionsEnumTrait
Helper functions to translate enum cases into an array of options.

Namespace

Drupal\Core\Utility

Code

abstract public function label() : string|\Stringable;

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.