function BlockDisplayVariant::getContexts
Same name in other branches
- 4.0.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 170
Class
- BlockDisplayVariant
- Provides a base class for a display variant that simply contains blocks.
Namespace
Drupal\ctools\Plugin\DisplayVariantCode
public function getContexts() {
return $this->contexts;
}