You are here

public function EnvironmentIndicator::setBgColor in Environment Indicator 8.3

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

Sets the background color.

Parameters

string $bg_color: The background color.

File

src/Entity/EnvironmentIndicator.php, line 166

Class

EnvironmentIndicator
Defines a Environment configuration entity.

Namespace

Drupal\environment_indicator\Entity

Code

public function setBgColor($bg_color) {
  $this
    ->set('bg_color', $bg_color);
}