public function EnvironmentIndicator::label in Environment Indicator 4.x
Same name and namespace in other branches
- 8.3 src/Entity/EnvironmentIndicator.php \Drupal\environment_indicator\Entity\EnvironmentIndicator::label()
- 8.2 lib/Drupal/environment_indicator/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 94
Class
- EnvironmentIndicator
- Defines a Environment configuration entity.
Namespace
Drupal\environment_indicator\EntityCode
public function label($langcode = NULL) {
return $this
->get('name');
}