You are here

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

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

Sets the foreground color.

Parameters

string $fg_color: The foreground color.

File

src/Entity/EnvironmentIndicator.php, line 164

Class

EnvironmentIndicator
Defines a Environment configuration entity.

Namespace

Drupal\environment_indicator\Entity

Code

public function setFgColor($fg_color) {
  $this
    ->set('fg_color', $fg_color);
}