You are here

MicrositeInterface.php in Entity Reference Hierarchy 3.x

File

modules/entity_hierarchy_microsite/src/Entity/MicrositeInterface.php
View source
<?php

namespace Drupal\entity_hierarchy_microsite\Entity;

use Drupal\Core\Entity\ContentEntityInterface;

/**
 * Defines an interface for microsites.
 */
interface MicrositeInterface extends ContentEntityInterface {

  /**
   * Gets the home page of the microsite.
   *
   * @return \Drupal\node\NodeInterface|null
   *   Home page node, or null if none exists.
   */
  public function getHome();

  /**
   * Gets the logo of the microsite.
   *
   * @return \Drupal\media\MediaInterface|null
   *   Logo media, or null if none exists.
   */
  public function getLogo();

}

Interfaces

Namesort descending Description
MicrositeInterface Defines an interface for microsites.