You are here

constant PrintEvents::CSS_ALTER in Entity Print 8.2

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.

https://www.drupal.org/node/2430561#from-your-theme

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

See also

\Drupal\entity_print\Event\PrintCssAlterEvent

File

src/Event/PrintEvents.php, line 51

Class

PrintEvents
The events related to Print Engines.

Namespace

Drupal\entity_print\Event

Code

const CSS_ALTER = 'entity_print.print.css_alter';