You are here

class D8CacheDrupalAttachmentsCollector in Drupal 8 Cache Backport 7

Adds reset() and some properties to DrupalAttachmentsCollector().

Hierarchy

Expanded class hierarchy of D8CacheDrupalAttachmentsCollector

File

./d8cache-ac.cache.inc, line 14

View source
class D8CacheDrupalAttachmentsCollector extends DrupalAttachmentsCollector {

  /**
   * A count for how many cache IDs this collector should be used.
   *
   * @var int
   */
  public $count = 0;

  /**
   * The stored previous collector.
   *
   * @var \DrupalAttachmentsCollector
   */
  public $previousCollector = NULL;

  /**
   * Reset the attachments in the collector.
   */
  public function reset() {
    $this->attachments = array();
  }

}

Members

Namesort descending Modifiers Type Description Overrides
D8CacheDrupalAttachmentsCollector::$count public property A count for how many cache IDs this collector should be used.
D8CacheDrupalAttachmentsCollector::$previousCollector public property The stored previous collector.
D8CacheDrupalAttachmentsCollector::reset public function Reset the attachments in the collector.