You are here

constant PdfEvents::CSS_ALTER in Entity Print 8

Name of the event fired when building CSS assets.

This event allows custom code to add their own CSS assets. Note the recommended way is to manage CSS from your theme. @link https://www.drupal.org/node/2430561#from-your-theme

$event
  ->getBuild()['#attached']['library'][] = 'module/library';

See also

\Drupal\entity_print\Event\PdfCssAlterEvent

File

src/Event/PdfEvents.php, line 63

Class

PdfEvents
The events related to PDF Engines.

Namespace

Drupal\entity_print\Event

Code

const CSS_ALTER = 'entity_print.pdf.css_alter';