You are here

public function BlockDisplayVariant::getContexts in Chaos Tool Suite (ctools) 8.3

Gets the contexts.

Return value

\Drupal\Component\Plugin\Context\ContextInterface[] An array of set contexts, keyed by context name.

Overrides ContextAwareVariantInterface::getContexts

File

src/Plugin/DisplayVariant/BlockDisplayVariant.php, line 163

Class

BlockDisplayVariant
Provides a base class for a display variant that simply contains blocks.

Namespace

Drupal\ctools\Plugin\DisplayVariant

Code

public function getContexts() {
  return $this->contexts;
}