You are here

protected function PageVariant::getContextMapper in Page Manager 8

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

Wraps the context mapper.

Return value

\Drupal\page_manager\ContextMapperInterface

File

src/Entity/PageVariant.php, line 446
Contains Drupal\page_manager\Entity\PageVariant.

Class

PageVariant
Defines the page variant entity.

Namespace

Drupal\page_manager\Entity

Code

protected function getContextMapper() {
  return \Drupal::service('page_manager.context_mapper');
}