You are here

public function Context::getName in Context 8.0

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

Get the machine name of the context.

Return value

string

Overrides ContextInterface::getName

File

src/Entity/Context.php, line 140

Class

Context
Defines the Context entity.

Namespace

Drupal\context\Entity

Code

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