SU-SWS/stanford_profile_helper

View on GitHub
modules/stanford_notifications/src/NotificationInterface.php

Summary

Maintainability
A
0 mins
Test Coverage
F
0%
<?php

namespace Drupal\stanford_notifications;

use Drupal\Core\Entity\ContentEntityInterface;

/**
 * Notification entity type interface.
 *
 * @package Drupal\stanford_notifications
 */
interface NotificationInterface extends ContentEntityInterface {

  /**
   * Get the notification message.
   *
   * @return string
   *   Text of the message, can include html.
   */
  public function message();

  /**
   * Get the user ID that the notification is for.
   *
   * @return int
   *   User entity id.
   */
  public function userId();

  /**
   * Get the status of the notification.
   *
   * @return string
   *   Status string.
   *
   * @see \Drupal\Core\Messenger\Messenger::TYPE_STATUS
   */
  public function status();

}