You are here

public function Context::id in Context 8.0

Same name and namespace in other branches
  1. 8.4 src/Entity/Context.php \Drupal\context\Entity\Context::id()
  2. 8 src/Entity/Context.php \Drupal\context\Entity\Context::id()

Returns the ID of the context. The ID is the unique machine name of the context.

Overrides EntityBase::id

File

src/Entity/Context.php, line 133

Class

Context
Defines the Context entity.

Namespace

Drupal\context\Entity

Code

public function id() {
  return $this->name;
}