PrintHtmlAlterTestEvent.php in Entity Print 8.2
Namespace
Drupal\Tests\entity_print\KernelFile
tests/src/Kernel/PrintHtmlAlterTestEvent.phpView 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
Name | Description |
---|---|
PrintHtmlAlterTestEvent | A test event. |