You are here

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

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

Sets the name.

Parameters

string $name: The environment name.

File

src/Entity/EnvironmentIndicator.php, line 144

Class

EnvironmentIndicator
Defines a Environment configuration entity.

Namespace

Drupal\environment_indicator\Entity

Code

public function setName($name) {
  $this
    ->set('name', $name);
}