You are here

interface RealisticDummyContentLogInterface in Realistic Dummy Content 8.2

Same name and namespace in other branches
  1. 7.2 api/src/includes/RealisticDummyContentLogInterface.php \Drupal\realistic_dummy_content_api\includes\RealisticDummyContentLogInterface
  2. 3.x api/src/includes/RealisticDummyContentLogInterface.php \Drupal\realistic_dummy_content_api\includes\RealisticDummyContentLogInterface

Interface for a log class.

Hierarchy

Expanded class hierarchy of RealisticDummyContentLogInterface

All classes that implement RealisticDummyContentLogInterface

File

api/src/includes/RealisticDummyContentLogInterface.php, line 8

Namespace

Drupal\realistic_dummy_content_api\includes
View source
interface RealisticDummyContentLogInterface {

  /**
   * Add a log entry for normal execution.
   *
   * @param string $text
   *   Text for the log entry.
   * @param array $vars
   *   Variables to insert in the text.
   */
  public function log($text, $vars = array());

  /**
   * Add a log entry for an error.
   *
   * @param string $text
   *   Text for the log entry.
   * @param array $vars
   *   Variables to insert in the text.
   */
  public function error($text, $vars = array());

}

Members

Namesort descending Modifiers Type Description Overrides
RealisticDummyContentLogInterface::error public function Add a log entry for an error. 2
RealisticDummyContentLogInterface::log public function Add a log entry for normal execution. 2