You are here

protected function MassContactCategory::generateGroupings in Mass Contact 8

Constructs the grouping plugins.

1 call to MassContactCategory::generateGroupings()
MassContactCategory::getGroupings in src/Entity/MassContactCategory.php
Gets the recipient category plugin definitions.

File

src/Entity/MassContactCategory.php, line 141

Class

MassContactCategory
Defines the Mass contact category entity.

Namespace

Drupal\mass_contact\Entity

Code

protected function generateGroupings() {
  if (!is_array($this->groupings)) {
    $this->groupings = [];
    foreach ($this->recipients as $plugin_id => $configuration) {
      $this->groupings[$plugin_id] = $this
        ->getGroupingManager()
        ->createInstance($plugin_id, $configuration);
    }
  }
}