You are here

public function MassContactInterface::getRecipients in Mass Contact 8

Given categories, returns an array of recipient IDs.

Parameters

\Drupal\mass_contact\Entity\MassContactCategoryInterface[] $categories: An array of mass contact categories.

bool $respect_opt_out: Whether to respect opt outs when getting the list of recipients.

Return value

int[] An array of recipient user IDs.

1 method overrides MassContactInterface::getRecipients()
MassContact::getRecipients in src/MassContact.php
Given categories, returns an array of recipient IDs.

File

src/MassContactInterface.php, line 86

Class

MassContactInterface
Defines an interface for the Mass Contact helper service.

Namespace

Drupal\mass_contact

Code

public function getRecipients(array $categories, $respect_opt_out);