You are here

public function PageVariant::getVariantPlugin in Page Manager 8

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

Gets the variant plugin.

Return value

\Drupal\Core\Display\VariantInterface

Overrides PageVariantInterface::getVariantPlugin

File

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

Class

PageVariant
Defines the page variant entity.

Namespace

Drupal\page_manager\Entity

Code

public function getVariantPlugin() {
  return $this
    ->getVariantPluginCollection()
    ->get($this->variant);
}