User.php in Rabbit Hole 2.x
File
modules/rh_user/src/Plugin/RabbitHoleEntityPlugin/User.php
View source
<?php
namespace Drupal\rh_user\Plugin\RabbitHoleEntityPlugin;
use Drupal\Core\Form\FormStateInterface;
use Drupal\rabbit_hole\Plugin\RabbitHoleEntityPluginBase;
class User extends RabbitHoleEntityPluginBase {
public function getGlobalConfigFormId() {
return "user_admin_settings";
}
public function getGlobalFormSubmitHandlerAttachLocations(array $form, FormStateInterface $form_state) {
return [
'#submit',
];
}
}
Classes
Name |
Description |
User |
Implements rabbit hole behavior for users. |