You are here

public function AssetCollectorInterface::getCssLibraries in Entity Print 8.2

Inject the relevant css for the template.

You can specify CSS files to be included per entity type and bundle in your themes css file. This code uses your current theme which is likely to be the front end theme.

Examples:

entity_print: all: 'yourtheme/all-pdfs', commerce_order: all: 'yourtheme/orders' node: article: 'yourtheme/article-pdf'

Parameters

\Drupal\Core\Entity\EntityInterface[] $entities: The entity info from entity_get_info().

Return value

array An array of stylesheets to be used for this template.

1 method overrides AssetCollectorInterface::getCssLibraries()
AssetCollector::getCssLibraries in src/Asset/AssetCollector.php
Inject the relevant css for the template.

File

src/Asset/AssetCollectorInterface.php, line 32

Class

AssetCollectorInterface
Collect all css assets for the entities being printed.

Namespace

Drupal\entity_print\Asset

Code

public function getCssLibraries(array $entities);