You are here

class InvalidateDependenciesEvent in Dependency Calculation 8

Hierarchy

Expanded class hierarchy of InvalidateDependenciesEvent

1 file declares its use of InvalidateDependenciesEvent
DepcalcCacheBackend.php in src/Cache/DepcalcCacheBackend.php

File

src/Event/InvalidateDependenciesEvent.php, line 7

Namespace

Drupal\depcalc\Event
View source
class InvalidateDependenciesEvent extends Event {

  /**
   * The list of DependentEntityWrappers being invalidated.
   *
   * @var \Drupal\depcalc\DependentEntityWrapperInterface[]
   */
  protected $wrappers;

  /**
   * InvalidateDependenciesEvent constructor.
   *
   * @param \Drupal\depcalc\DependentEntityWrapperInterface[] $wrappers
   */
  public function __construct(array $wrappers) {
    $this->wrappers = $wrappers;
  }

  /**
   * @return \Drupal\depcalc\DependentEntityWrapperInterface[]
   */
  public function getWrappers() : array {
    return $this->wrappers;
  }

}

Members

Namesort descending Modifiers Type Description Overrides
InvalidateDependenciesEvent::$wrappers protected property The list of DependentEntityWrappers being invalidated.
InvalidateDependenciesEvent::getWrappers public function
InvalidateDependenciesEvent::__construct public function InvalidateDependenciesEvent constructor.