You are here

public function UserProtectionBase::applyAccountFormProtection in User protect 8

Implements applyAccountFormProtection::isEnabled().

By default, no protection is applied.

Overrides UserProtectionInterface::applyAccountFormProtection

5 methods override UserProtectionBase::applyAccountFormProtection()
Mail::applyAccountFormProtection in src/Plugin/UserProtection/Mail.php
Implements applyAccountFormProtection::isEnabled().
Password::applyAccountFormProtection in src/Plugin/UserProtection/Password.php
Implements applyAccountFormProtection::isEnabled().
Roles::applyAccountFormProtection in src/Plugin/UserProtection/Roles.php
Implements applyAccountFormProtection::isEnabled().
Status::applyAccountFormProtection in src/Plugin/UserProtection/Status.php
Implements applyAccountFormProtection::isEnabled().
Username::applyAccountFormProtection in src/Plugin/UserProtection/Username.php
Implements applyAccountFormProtection::isEnabled().

File

src/Plugin/UserProtection/UserProtectionBase.php, line 115

Class

UserProtectionBase
Provides a base class for UserProtection plugins.

Namespace

Drupal\userprotect\Plugin\UserProtection

Code

public function applyAccountFormProtection(array &$form, FormStateInterface $form_state) {
  return FALSE;
}