You are here

public function AddAssetsCommand::__construct in Content-Security-Policy 8

Constructs a AddAssetsCommand object.

Parameters

array[] $assets: An array of asset element definitions.

File

csp_extras/src/Ajax/AddAssetsCommand.php, line 32

Class

AddAssetsCommand
AJAX command for including additional assets.

Namespace

Drupal\csp_extras\Ajax

Code

public function __construct(array $assets) {
  $this->assets = array_values($assets);
}