public function UserProtectionInterface::applyAccountFormProtection in User protect 8
Applies protections to user account form.
Parameters
array $form: Nested array of form elements that comprise the form.
\Drupal\Core\Form\FormStateInterface $form_state: The current state of the form.
Return value
bool TRUE if the protection was applied. FALSE otherwise.
1 method overrides UserProtectionInterface::applyAccountFormProtection()
- UserProtectionBase::applyAccountFormProtection in src/
Plugin/ UserProtection/ UserProtectionBase.php - Implements applyAccountFormProtection::isEnabled().
File
- src/
Plugin/ UserProtection/ UserProtectionInterface.php, line 78
Class
- UserProtectionInterface
- Defines the interface for user protection plugins.
Namespace
Drupal\userprotect\Plugin\UserProtectionCode
public function applyAccountFormProtection(array &$form, FormStateInterface $form_state);