You are here

function mailchimp_signup_load in Mailchimp 8

Same name and namespace in other branches
  1. 7.5 modules/mailchimp_signup/mailchimp_signup.module \mailchimp_signup_load()
  2. 7.3 modules/mailchimp_signup/mailchimp_signup.module \mailchimp_signup_load()
  3. 7.4 modules/mailchimp_signup/mailchimp_signup.module \mailchimp_signup_load()
  4. 2.x modules/mailchimp_signup/mailchimp_signup.module \mailchimp_signup_load()

Loads a single MailchimpSignup entity by ID.

Parameters

int $signup_id: The ID of the MailchimpSignup entity to load.

Return value

\Drupal\mailchimp_signup\Entity\MailchimpSignup The MailchimpSignup entity.

3 calls to mailchimp_signup_load()
MailchimpSignupController::page in modules/mailchimp_signup/src/Controller/MailchimpSignupController.php
View a Mailchimp signup form as a page.
MailchimpSignupFormFormatter::viewElements in modules/mailchimp_signup/src/Plugin/Field/FieldFormatter/MailchimpSignupFormFormatter.php
Builds a renderable array for a field value.
MailchimpSignupSubscribeBlock::build in modules/mailchimp_signup/src/Plugin/Block/MailchimpSignupSubscribeBlock.php
Builds and returns the renderable array for this block plugin.
1 string reference to 'mailchimp_signup_load'
MailchimpSignupForm::form in modules/mailchimp_signup/src/Form/MailchimpSignupForm.php
Gets the actual form array to be built.

File

modules/mailchimp_signup/mailchimp_signup.module, line 23
Creates signup forms integrated with Mailchimp.

Code

function mailchimp_signup_load($signup_id) {
  return MailchimpSignup::load($signup_id);
}