You are here

function TemplateCollection::getOwner in Courier 8

Same name and namespace in other branches
  1. 2.x 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 51

Class

TemplateCollection
Defines a local template collection entity.

Namespace

Drupal\courier\Entity

Code

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