You are here

public function Webform::getPluginCollections in Webform 8.5

Same name and namespace in other branches
  1. 6.x src/Entity/Webform.php \Drupal\webform\Entity\Webform::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/Webform.php, line 2497

Class

Webform
Defines the webform entity.

Namespace

Drupal\webform\Entity

Code

public function getPluginCollections() {
  return [
    'handlers' => $this
      ->getHandlers(),
    'variants' => $this
      ->getVariants(),
  ];
}