You are here

public function SocialEventManagersSendEmail::buildConfigurationForm in Open Social 8.5

Same name and namespace in other branches
  1. 8.9 modules/social_features/social_event/modules/social_event_managers/src/Plugin/Action/SocialEventManagersSendEmail.php \Drupal\social_event_managers\Plugin\Action\SocialEventManagersSendEmail::buildConfigurationForm()
  2. 8.6 modules/social_features/social_event/modules/social_event_managers/src/Plugin/Action/SocialEventManagersSendEmail.php \Drupal\social_event_managers\Plugin\Action\SocialEventManagersSendEmail::buildConfigurationForm()
  3. 8.7 modules/social_features/social_event/modules/social_event_managers/src/Plugin/Action/SocialEventManagersSendEmail.php \Drupal\social_event_managers\Plugin\Action\SocialEventManagersSendEmail::buildConfigurationForm()
  4. 8.8 modules/social_features/social_event/modules/social_event_managers/src/Plugin/Action/SocialEventManagersSendEmail.php \Drupal\social_event_managers\Plugin\Action\SocialEventManagersSendEmail::buildConfigurationForm()
  5. 10.3.x modules/social_features/social_event/modules/social_event_managers/src/Plugin/Action/SocialEventManagersSendEmail.php \Drupal\social_event_managers\Plugin\Action\SocialEventManagersSendEmail::buildConfigurationForm()
  6. 10.0.x modules/social_features/social_event/modules/social_event_managers/src/Plugin/Action/SocialEventManagersSendEmail.php \Drupal\social_event_managers\Plugin\Action\SocialEventManagersSendEmail::buildConfigurationForm()
  7. 10.1.x modules/social_features/social_event/modules/social_event_managers/src/Plugin/Action/SocialEventManagersSendEmail.php \Drupal\social_event_managers\Plugin\Action\SocialEventManagersSendEmail::buildConfigurationForm()
  8. 10.2.x modules/social_features/social_event/modules/social_event_managers/src/Plugin/Action/SocialEventManagersSendEmail.php \Drupal\social_event_managers\Plugin\Action\SocialEventManagersSendEmail::buildConfigurationForm()

Configuration form builder.

If this method has implementation, the action is considered to be configurable.

Parameters

array $form: Form array.

\Drupal\Core\Form\FormStateInterface $form_state: The form state object.

Return value

array The configuration form.

Overrides SocialSendEmail::buildConfigurationForm

File

modules/social_features/social_event/modules/social_event_managers/src/Plugin/Action/SocialEventManagersSendEmail.php, line 68

Class

SocialEventManagersSendEmail
Send email to event enrollment users.

Namespace

Drupal\social_event_managers\Plugin\Action

Code

public function buildConfigurationForm(array $form, FormStateInterface $form_state) {

  // Add title to the form as well.
  if ($form['#title'] !== NULL) {
    $selected_count = $this->context['selected_count'];
    $subtitle = $this
      ->formatPlural($selected_count, 'Configure the email you want to send to the one enrollee you have selected.', 'Configure the email you want to send to the @count enrollees you have selected.');
    $form['subtitle'] = [
      '#type' => 'html_tag',
      '#tag' => 'div',
      '#attributes' => [
        'class' => [
          'placeholder',
        ],
      ],
      '#value' => $subtitle,
    ];
  }
  return parent::buildConfigurationForm($form, $form_state);
}