You are here

public function PageVariant::resetCollectedContexts in Page Manager 8.4

Same name and namespace in other branches
  1. 8 src/Entity/PageVariant.php \Drupal\page_manager\Entity\PageVariant::resetCollectedContexts()

Resets the collected contexts.

Return value

$this

Overrides PageVariantInterface::resetCollectedContexts

2 calls to PageVariant::resetCollectedContexts()
PageVariant::removeStaticContext in src/Entity/PageVariant.php
Removes a specific static context.
PageVariant::setStaticContext in src/Entity/PageVariant.php
Adds/updates a given static context.

File

src/Entity/PageVariant.php, line 289

Class

PageVariant
Defines the page variant entity.

Namespace

Drupal\page_manager\Entity

Code

public function resetCollectedContexts() {
  $this->contexts = NULL;
  return $this;
}