You are here

PrintHtmlAlterTestEvent.php in Entity Print 8.2

File

tests/src/Kernel/PrintHtmlAlterTestEvent.php
View source
<?php

namespace Drupal\Tests\entity_print\Kernel;

use Drupal\entity_print\Event\PrintHtmlAlterEvent;
use Drupal\entity_print\PrintEngineException;

/**
 * A test event.
 */
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');
  }

}

Classes

Namesort descending Description
PrintHtmlAlterTestEvent A test event.