You are here

public function Context::id in Context 8.4

Same name and namespace in other branches
  1. 8 src/Entity/Context.php \Drupal\context\Entity\Context::id()
  2. 8.0 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

1 call to Context::id()
Context::duplicate in src/Entity/Context.php
Duplicates the context.

File

src/Entity/Context.php, line 138

Class

Context
Defines the Context entity.

Namespace

Drupal\context\Entity

Code

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