You are here

public function Microsite::getLogo in Entity Reference Hierarchy 8.2

Same name and namespace in other branches
  1. 3.x modules/entity_hierarchy_microsite/src/Entity/Microsite.php \Drupal\entity_hierarchy_microsite\Entity\Microsite::getLogo()

Gets the logo of the microsite.

Return value

\Drupal\media\MediaInterface|null Logo media, or null if none exists.

Overrides MicrositeInterface::getLogo

File

modules/entity_hierarchy_microsite/src/Entity/Microsite.php, line 122

Class

Microsite
Defines a class for a microsite entity.

Namespace

Drupal\entity_hierarchy_microsite\Entity

Code

public function getLogo() {
  return $this
    ->get('logo')->entity;
}