You are here

public function MassContactCategory::setRecipients in Mass Contact 8

Sets the recipients data.

Parameters

array $recipients: The recipients data, keyed by plugin ID.

Overrides MassContactCategoryInterface::setRecipients

File

src/Entity/MassContactCategory.php, line 175

Class

MassContactCategory
Defines the Mass contact category entity.

Namespace

Drupal\mass_contact\Entity

Code

public function setRecipients(array $recipients) {
  $this->recipients = $recipients;

  // Need to re-generate groupings.
  $this->groupings = NULL;
}