You are here

class PrintHtmlAlterTestEvent in Entity Print 8.2

A test event.

Hierarchy

Expanded class hierarchy of PrintHtmlAlterTestEvent

File

tests/src/Kernel/PrintHtmlAlterTestEvent.php, line 11

Namespace

Drupal\Tests\entity_print\Kernel
View source
class PrintHtmlAlterTestEvent extends PrintHtmlAlterEvent {

  /**
   * PrintHtmlAlterTestEvent constructor.
   */
  public function __construct() {
  }

  /**
   * Throws an exception so we can test PostRenderSubscriber.
   */
  public function &getHtml() {
    throw new PrintEngineException('getHtml should never be called');
  }

}

Members

Namesort descending Modifiers Type Description Overrides
PrintHtmlAlterEvent::$entities protected property An array of entities we're rendering.
PrintHtmlAlterEvent::$html protected property The HTML string.
PrintHtmlAlterEvent::getEntities public function Gets the entities being rendered.
PrintHtmlAlterTestEvent::getHtml public function Throws an exception so we can test PostRenderSubscriber. Overrides PrintHtmlAlterEvent::getHtml
PrintHtmlAlterTestEvent::__construct public function PrintHtmlAlterTestEvent constructor. Overrides PrintHtmlAlterEvent::__construct