You are here

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

Same name and namespace in other branches
  1. 8.3 src/Entity/EnvironmentIndicator.php \Drupal\environment_indicator\Entity\EnvironmentIndicator::id()
  2. 8.2 lib/Drupal/environment_indicator/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 87

Class

EnvironmentIndicator
Defines a Environment configuration entity.

Namespace

Drupal\environment_indicator\Entity

Code

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