You are here

public function Template::getPluginCollections in Workbench Email 2.x

Same name and namespace in other branches
  1. 8 src/Entity/Template.php \Drupal\workbench_email\Entity\Template::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/Template.php, line 184

Class

Template
Defines the Email Template entity.

Namespace

Drupal\workbench_email\Entity

Code

public function getPluginCollections() {
  return [
    'recipient_types' => $this
      ->recipientTypes(),
  ];
}