You are here

public function MailingList::setLimitByEmail in Mailing List 8

Sets the maximum number of subscriptions per email address.

Parameters

int $limit: The limit value.

Overrides MailingListInterface::setLimitByEmail

File

src/Entity/MailingList.php, line 161

Class

MailingList
Defines the mailing list configuration entity.

Namespace

Drupal\mailing_list\Entity

Code

public function setLimitByEmail($limit) {
  $this->max_per_email = $limit;
}