function mailchimp_signup_load_multiple in Mailchimp 2.x
Same name and namespace in other branches
- 8 modules/mailchimp_signup/mailchimp_signup.module \mailchimp_signup_load_multiple()
- 7.5 modules/mailchimp_signup/mailchimp_signup.module \mailchimp_signup_load_multiple()
- 7.3 modules/mailchimp_signup/mailchimp_signup.module \mailchimp_signup_load_multiple()
- 7.4 modules/mailchimp_signup/mailchimp_signup.module \mailchimp_signup_load_multiple()
Loads multiple MailchimpSignup entities.
Parameters
array $signup_ids: Array of MailchimpSignup entity IDs to load.
bool $reset: TRUE to reset cache when loading MailchimpSignup entities.
Return value
\Drupal\mailchimp_signup\Entity\MailchimpSignup[] Array of MailchimpSignup entities.
2 calls to mailchimp_signup_load_multiple()
- MailchimpSignupRoutes::routes in modules/
mailchimp_signup/ src/ Routing/ MailchimpSignupRoutes.php - MailchimpSignupSubscribeBlock::getDerivativeDefinitions in modules/
mailchimp_signup/ src/ Plugin/ Derivative/ MailchimpSignupSubscribeBlock.php - Gets the definition of all derivatives of a base plugin.
File
- modules/
mailchimp_signup/ mailchimp_signup.module, line 38 - Creates signup forms integrated with Mailchimp.
Code
function mailchimp_signup_load_multiple(array $signup_ids = [], $reset = FALSE) {
if (empty($signup_ids)) {
$signup_ids = NULL;
}
$controller = \Drupal::entityTypeManager()
->getStorage('mailchimp_signup');
if ($reset) {
$controller
->resetCache($signup_ids);
}
return $controller
->loadMultiple($signup_ids);
}