You are here

public function PageVariant::setVariantPluginId in Page Manager 8

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

Sets the plugin ID of the variant plugin without loading the Plugin collections.

Parameters

string $variant: The plugin ID of the variant plugin.

Return value

$this

Overrides PageVariantInterface::setVariantPluginId

See also

\Drupal\page_manager\Entity\PageVariant::getPluginCollections()

File

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

Class

PageVariant
Defines the page variant entity.

Namespace

Drupal\page_manager\Entity

Code

public function setVariantPluginId($variant) {
  $this->variant = $variant;
  return $this;
}