You are here

public function Webform::getPluginCollections in Webform 6.x

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

Class

Webform
Defines the webform entity.

Namespace

Drupal\webform\Entity

Code

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