You are here

public function TemplateCollectionInterface::setContext in Courier 2.x

Same name and namespace in other branches
  1. 8 src/TemplateCollectionInterface.php \Drupal\courier\TemplateCollectionInterface::setContext()

Sets the context entity.

Parameters

\Drupal\courier\CourierContextInterface|null $entity: A courier_context entity, or NULL to remove context.

Return value

\Drupal\courier\TemplateCollectionInterface Return this object for chaining.

1 method overrides TemplateCollectionInterface::setContext()
TemplateCollection::setContext in src/Entity/TemplateCollection.php
Sets the context entity.

File

src/TemplateCollectionInterface.php, line 30

Class

TemplateCollectionInterface
Provides an interface defining a courier_template_collection entity.

Namespace

Drupal\courier

Code

public function setContext(CourierContextInterface $entity);