You are here

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

Implements Drupal\Core\Ajax\CommandInterface:render().

Overrides CommandInterface::render

File

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

Class

AddAssetsCommand
AJAX command for including additional assets.

Namespace

Drupal\csp_extras\Ajax

Code

public function render() {
  return [
    'command' => 'add_assets',
    'assets' => $this->assets,
  ];
}