You are here

function entity_legal_form_user_register_form_alter in Entity Legal 8.2

Same name and namespace in other branches
  1. 7.2 entity_legal.module \entity_legal_form_user_register_form_alter()
  2. 7 entity_legal.module \entity_legal_form_user_register_form_alter()
  3. 4.0.x entity_legal.module \entity_legal_form_user_register_form_alter()
  4. 3.0.x entity_legal.module \entity_legal_form_user_register_form_alter()

Implements hook_form_FORM_ID_alter().

File

./entity_legal.module, line 44
Entity Legal module.

Code

function entity_legal_form_user_register_form_alter(&$form, &$form_state) {
  $context = [
    'form' => &$form,
  ];

  // Execute Profile Form method plugin.
  \Drupal::service('plugin.manager.entity_legal')
    ->createInstance('form_link')
    ->execute($context);

  // Execute Profile Form Embedded method plugin.
  \Drupal::service('plugin.manager.entity_legal')
    ->createInstance('form_inline')
    ->execute($context);
}