You are here

PackagesAwareTrait.php in Automatic Updates 8.2

File

src/Event/PackagesAwareTrait.php
View source
<?php

namespace Drupal\automatic_updates\Event;


/**
 * Common functionality for events which can carry desired package versions.
 */
trait PackagesAwareTrait {

  /**
   * The desired package versions to update to, keyed by package name.
   *
   * @var string[]
   */
  protected $packageVersions;

  /**
   * Returns the desired package versions to update to.
   *
   * @return string[]
   *   The desired package versions to update to, keyed by package name.
   */
  public function getPackageVersions() : array {
    return $this->packageVersions;
  }

}

Traits

Namesort descending Description
PackagesAwareTrait Common functionality for events which can carry desired package versions.