You are here

public function TemplateCollection::getOwner in Courier 2.x

Same name and namespace in other branches
  1. 8 src/Entity/TemplateCollection.php \Drupal\courier\Entity\TemplateCollection::getOwner()

Gets the owner entity.

Return value

\Drupal\Core\Entity\EntityInterface|null The owner entity, or NULL if it does not exist.

Overrides TemplateCollectionInterface::getOwner

File

src/Entity/TemplateCollection.php, line 50

Class

TemplateCollection
Defines a local template collection entity.

Namespace

Drupal\courier\Entity

Code

public function getOwner() {
  return $this
    ->get('owner')->entity;
}