You are here

public function PageVariant::getPluginCollections in Page Manager 8.4

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

Gets the plugin collections used by this object.

Return value

\Drupal\Component\Plugin\LazyPluginCollection[] An array of plugin collections, keyed by the property name they use to store their configuration.

Overrides ObjectWithPluginCollectionInterface::getPluginCollections

File

src/Entity/PageVariant.php, line 203

Class

PageVariant
Defines the page variant entity.

Namespace

Drupal\page_manager\Entity

Code

public function getPluginCollections() {
  return [
    'selection_criteria' => $this
      ->getSelectionConditions(),
    'variant_settings' => $this
      ->getVariantPluginCollection(),
  ];
}