interface MessageInterface

Interface for the tmgmt_message entity.

Hierarchy

  • interface \Drupal\tmgmt\MessageInterface extends \Drupal\Core\Entity\ContentEntityInterface

Expanded class hierarchy of MessageInterface

All classes that implement MessageInterface

Related topics

1 file declares its use of MessageInterface
Message.php in src/Entity/Message.php

File

src/MessageInterface.php, line 12

Namespace

Drupal\tmgmt
View source
interface MessageInterface extends ContentEntityInterface {

  /**
   * Returns the translated message.
   *
   * @return TranslatableMarkup
   *   The message.
   */
  public function getMessage();

  /**
   * Loads the job entity that this job message is attached to.
   *
   * @return \Drupal\tmgmt\JobInterface
   *   The job entity that this job message is attached to or FALSE if there was
   *   a problem.
   */
  public function getJob();

  /**
   * Loads the job entity that this job message is attached to.
   *
   * @return \Drupal\tmgmt\JobItemInterface
   *   The job item entity that this job message is attached to or FALSE if
   *   there was a problem.
   */
  public function getJobItem();

  /**
   * Returns the message type.
   *
   * @return string
   *   Message type.
   */
  public function getType();

}

Members

Namesort descending Modifiers Type Description Overrides
MessageInterface::getJob public function Loads the job entity that this job message is attached to. 1
MessageInterface::getJobItem public function Loads the job entity that this job message is attached to. 1
MessageInterface::getMessage public function Returns the translated message. 1
MessageInterface::getType public function Returns the message type. 1