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