class PrintHtmlAlterTestEvent in Entity Print 8.2
A test event.
Hierarchy
- class \Drupal\entity_print\Event\PrintHtmlAlterEvent extends \Symfony\Component\EventDispatcher\Event
- class \Drupal\Tests\entity_print\Kernel\PrintHtmlAlterTestEvent
Expanded class hierarchy of PrintHtmlAlterTestEvent
File
- tests/
src/ Kernel/ PrintHtmlAlterTestEvent.php, line 11
Namespace
Drupal\Tests\entity_print\KernelView 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
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
PrintHtmlAlterEvent:: |
protected | property | An array of entities we're rendering. | |
PrintHtmlAlterEvent:: |
protected | property | The HTML string. | |
PrintHtmlAlterEvent:: |
public | function | Gets the entities being rendered. | |
PrintHtmlAlterTestEvent:: |
public | function |
Throws an exception so we can test PostRenderSubscriber. Overrides PrintHtmlAlterEvent:: |
|
PrintHtmlAlterTestEvent:: |
public | function |
PrintHtmlAlterTestEvent constructor. Overrides PrintHtmlAlterEvent:: |