function BlockDisplayVariant::getContexts

Same name in other branches
  1. 8.x-3.x src/Plugin/DisplayVariant/BlockDisplayVariant.php \Drupal\ctools\Plugin\DisplayVariant\BlockDisplayVariant::getContexts()

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;
}