You are here

public function ContextInterface::setName in Context 8.4

Same name and namespace in other branches
  1. 8 src/ContextInterface.php \Drupal\context\ContextInterface::setName()
  2. 8.0 src/ContextInterface.php \Drupal\context\ContextInterface::setName()

Set the machine name of the context.

Parameters

string $name: The new name to set.

Return value

$this This Context object.

1 method overrides ContextInterface::setName()
Context::setName in src/Entity/Context.php
Set the machine name of the context.

File

src/ContextInterface.php, line 43

Class

ContextInterface
Provides an interface for Context.

Namespace

Drupal\context

Code

public function setName($name);