ContentModerationNotificationInterface.php in Content Moderation Notifications 8.2
Same filename and directory in other branches
Namespace
Drupal\content_moderation_notificationsFile
src/ContentModerationNotificationInterface.phpView source
<?php
namespace Drupal\content_moderation_notifications;
use Drupal\Core\Config\Entity\ConfigEntityInterface;
/**
 * Defines a content moderation notification interface.
 */
interface ContentModerationNotificationInterface extends ConfigEntityInterface {
  /**
   * Gets the workflow ID.
   *
   * @return string
   *   The workflow ID.
   */
  public function getWorkflowId();
  /**
   * Gets the relevant roles for this notification.
   *
   * @return string[]
   *   The role IDs that should receive notification.
   */
  public function getRoleIds();
  /**
   * Get the transitions for which to send this notification.
   *
   * @return string[]
   *   The relevant transitions.
   */
  public function getTransitions();
  /**
   * Gets the notification subject.
   *
   * @return string
   *   The message subject.
   */
  public function getSubject();
  /**
   * Gets the message value.
   *
   * @return string
   *   The message body text.
   */
  public function getMessage();
  /**
   * Gets the message format.
   *
   * @return string
   *   The format to be used for the message body.
   */
  public function getMessageFormat();
}Interfaces
| 
            Name | 
                  Description | 
|---|---|
| ContentModerationNotificationInterface | Defines a content moderation notification interface. |