You are here

public function TemplateCollectionInterface::setOwner in Courier 2.x

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

Sets the owner entity.

Parameters

\Drupal\Core\Entity\EntityInterface|null $entity: An entity, or NULL to set as global.

Return value

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

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

File

src/TemplateCollectionInterface.php, line 49

Class

TemplateCollectionInterface
Provides an interface defining a courier_template_collection entity.

Namespace

Drupal\courier

Code

public function setOwner(EntityInterface $entity);