public function EnvironmentIndicator::label in Environment Indicator 8.3
Same name and namespace in other branches
- 8.2 lib/Drupal/environment_indicator/Entity/EnvironmentIndicator.php \Drupal\environment_indicator\Entity\EnvironmentIndicator::label()
- 4.x src/Entity/EnvironmentIndicator.php \Drupal\environment_indicator\Entity\EnvironmentIndicator::label()
Gets the label of the entity.
Return value
string|null The label of the entity, or NULL if there is no label defined.
Overrides EntityBase::label
File
- src/
Entity/ EnvironmentIndicator.php, line 86
Class
- EnvironmentIndicator
- Defines a Environment configuration entity.
Namespace
Drupal\environment_indicator\EntityCode
public function label($langcode = NULL) {
return $this
->get('name');
}