You are here

public function CommandExecuteEvent::addAsset in Update helper 2.x

Add an asset.

Parameters

\DrupalCodeGenerator\Asset $asset: The asset to add to the array.

Return value

$this

File

src/Events/CommandExecuteEvent.php, line 74

Class

CommandExecuteEvent
Event for command execute.

Namespace

Drupal\update_helper\Events

Code

public function addAsset(Asset $asset) {
  $this->assets[] = $asset;
  return $this;
}