You are here

public function EnvironmentIndicator::id in Environment Indicator 8.2

Same name and namespace in other branches
  1. 8.3 src/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

1 call to EnvironmentIndicator::id()
EnvironmentIndicator::uri in lib/Drupal/environment_indicator/Entity/EnvironmentIndicator.php

File

lib/Drupal/environment_indicator/Entity/EnvironmentIndicator.php, line 91
Contains \Drupal\environment_indicator\Entity\EnvironmentIndicator.

Class

EnvironmentIndicator
Defines a Environment configuration entity.

Namespace

Drupal\environment_indicator\Entity

Code

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