You are here

public function EnvironmentIndicator::id in Environment Indicator 8.3

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

Gets the identifier.

Return value

string|int|null The entity identifier, or NULL if the object does not yet have an identifier.

Overrides EntityBase::id

File

src/Entity/EnvironmentIndicator.php, line 79

Class

EnvironmentIndicator
Defines a Environment configuration entity.

Namespace

Drupal\environment_indicator\Entity

Code

public function id() {
  return $this
    ->get('machine');
}