You are here

public function PageVariantInterface::setStaticContext in Page Manager 8

Same name and namespace in other branches
  1. 8.4 src/PageVariantInterface.php \Drupal\page_manager\PageVariantInterface::setStaticContext()

Adds/updates a given static context.

Parameters

string $name: The static context unique machine name.

array $configuration: A new array of configuration for the static context.

Return value

$this

1 method overrides PageVariantInterface::setStaticContext()
PageVariant::setStaticContext in src/Entity/PageVariant.php
Adds/updates a given static context.

File

src/PageVariantInterface.php, line 172
Contains Drupal\page_manager\PageVariantInterface.

Class

PageVariantInterface
Provides an interface defining a PageVariant entity.

Namespace

Drupal\page_manager

Code

public function setStaticContext($name, $configuration);