You are here

public function EnvironmentIndicator::getBgColor in Environment Indicator 4.x

Same name and namespace in other branches
  1. 8.3 src/Entity/EnvironmentIndicator.php \Drupal\environment_indicator\Entity\EnvironmentIndicator::getBgColor()

Gets the background color.

Return value

string The color code for the indicator.

File

src/Entity/EnvironmentIndicator.php, line 124

Class

EnvironmentIndicator
Defines a Environment configuration entity.

Namespace

Drupal\environment_indicator\Entity

Code

public function getBgColor() {
  return $this
    ->get('bg_color');
}