You are here

public function PageVariant::getVariantPlugin in Page Manager 8.4

Same name and namespace in other branches
  1. 8 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 229

Class

PageVariant
Defines the page variant entity.

Namespace

Drupal\page_manager\Entity

Code

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