Same name in other branches
  1. 5.0.x src/Asset/AssetOptimizationEvent.php \Drupal\advagg\Asset\AssetOptimizationEvent::setAsset()
  2. 8.x-3.x src/Asset/AssetOptimizationEvent.php \Drupal\advagg\Asset\AssetOptimizationEvent::setAsset()
  3. 8.x-4.x src/Asset/AssetOptimizationEvent.php \Drupal\advagg\Asset\AssetOptimizationEvent::setAsset()

Update the asset array.

Paramètres

array $asset_array: The updated asset definition array.

Fichier

src/Asset/AssetOptimizationEvent.php, line 107

Classe

AssetOptimizationEvent
AssetOptimizationEvent data holder.

Namespace

Drupal\advagg\Asset

Code

public function setAsset(array $asset_array) {
    $this->asset = $asset_array;
}