MicrositeInterface.php in Entity Reference Hierarchy 3.x
Same filename and directory in other branches
Namespace
Drupal\entity_hierarchy_microsite\EntityFile
modules/entity_hierarchy_microsite/src/Entity/MicrositeInterface.phpView 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
Name | Description |
---|---|
MicrositeInterface | Defines an interface for microsites. |