function auto_login_url_create in Auto Login URL 2.x
Same name and namespace in other branches
- 8 auto_login_url.module \auto_login_url_create()
- 7 auto_login_url.module \auto_login_url_create()
Wrapper function for AutoLoginUrlCreate::create().
4 calls to auto_login_url_create()
- AutoLoginUrlTest::testAluFloodCheck in src/
Tests/ AutoLoginUrlTest.php - Test flood.
- AutoLoginUrlTest::testAluSettingsCheck in src/
Tests/ AutoLoginUrlTest.php - Test token generation with different settings.
- AutoLoginUrlTest::testAluTokenGenerationCheck in src/
Tests/ AutoLoginUrlTest.php - Test token generation.
- auto_login_url_tokens in ./
auto_login_url.module - Implements hook_tokens().
File
- ./
auto_login_url.module, line 27 - Main file for auto_login_url module.
Code
function auto_login_url_create($uid, $destination, $absolute = FALSE) {
$alu_service = \Drupal::service('auto_login_url.create');
return $alu_service
->create($uid, $destination, $absolute);
}