You are here

function TemplateCollectionInterface::setContext in Courier 8

Same name and namespace in other branches
  1. 2.x 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 35
Contains \Drupal\courier\TemplateCollectionInterface.

Class

TemplateCollectionInterface
Provides an interface defining a courier_template_collection entity.

Namespace

Drupal\courier

Code

function setContext(CourierContextInterface $entity);