You are here

function TemplateCollectionInterface::setOwner in Courier 8

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

Class

TemplateCollectionInterface
Provides an interface defining a courier_template_collection entity.

Namespace

Drupal\courier

Code

function setOwner(EntityInterface $entity);