You are here

public function User::getGlobalFormSubmitHandlerAttachLocations in Rabbit Hole 2.x

Same name and namespace in other branches
  1. 8 modules/rh_user/src/Plugin/RabbitHoleEntityPlugin/User.php \Drupal\rh_user\Plugin\RabbitHoleEntityPlugin\User::getGlobalFormSubmitHandlerAttachLocations()

Return locations to attach submit handlers to the global config form.

This should return an array of arrays, e.g.: [ ['actions', 'submit', '#publish'], ['actions', 'publish', '#submit'], ].

Overrides RabbitHoleEntityPluginBase::getGlobalFormSubmitHandlerAttachLocations

File

modules/rh_user/src/Plugin/RabbitHoleEntityPlugin/User.php, line 29

Class

User
Implements rabbit hole behavior for users.

Namespace

Drupal\rh_user\Plugin\RabbitHoleEntityPlugin

Code

public function getGlobalFormSubmitHandlerAttachLocations(array $form, FormStateInterface $form_state) {
  return [
    '#submit',
  ];
}