protected function UserCreate::checkUserNameExists in CiviCRM Entity 8.3
Check if username exists.
Parameters
array $params: The parameters.
\CRM_Utils_System_Base $userSystem: The user system.
Return value
boolean TRUE if username exists; otherwise FALSE.
1 call to UserCreate::checkUserNameExists()
- UserCreate::doExecute in src/
Plugin/ RulesAction/ UserCreate.php
File
- src/
Plugin/ RulesAction/ UserCreate.php, line 200
Class
- UserCreate
- Provides a 'User create' action.
Namespace
Drupal\civicrm_entity\Plugin\RulesActionCode
protected function checkUserNameExists(array $params, \CRM_Utils_System_Base $userSystem) {
$errors = [];
$userSystem
->checkUserNameEmailExists($params, $errors);
return isset($errors['cms_name']);
}