function OptionsEnumTrait::label
Same name and namespace in other branches
- 11.x core/lib/Drupal/Core/Utility/OptionsEnumTrait.php \Drupal\Core\Utility\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\UtilityCode
abstract public function label() : string|\Stringable;
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.