public function PageVariant::setVariantPluginId in Page Manager 8.4
Same name and namespace in other branches
- 8 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 243
Class
- PageVariant
- Defines the page variant entity.
Namespace
Drupal\page_manager\EntityCode
public function setVariantPluginId($variant) {
$this->variant = $variant;
return $this;
}