You are here

interface PuSHSubscriberEnvironmentInterface in Feeds 8.2

Implement to provide environmental functionality like user messages and logging.

Hierarchy

Expanded class hierarchy of PuSHSubscriberEnvironmentInterface

All classes that implement PuSHSubscriberEnvironmentInterface

File

lib/Drupal/feeds/PuSHSubscriber.php, line 372
Pubsubhubbub subscriber library.

Namespace

Drupal\feeds
View source
interface PuSHSubscriberEnvironmentInterface {

  /**
   * A message to be displayed to the user on the current page load.
   *
   * @param $msg
   *   A string that is the message to be displayed.
   * @param $level
   *   A string that is either 'status', 'warning' or 'error'.
   */
  public function msg($msg, $level = 'status');

  /**
   * A log message to be logged to the database or the file system.
   *
   * @param $msg
   *   A string that is the message to be displayed.
   * @param $level
   *   A string that is either 'status', 'warning' or 'error'.
   */
  public function log($msg, $level = 'status');

}

Members

Namesort descending Modifiers Type Description Overrides
PuSHSubscriberEnvironmentInterface::log public function A log message to be logged to the database or the file system. 1
PuSHSubscriberEnvironmentInterface::msg public function A message to be displayed to the user on the current page load. 1