Commit e6d0ce07 authored by elachlan's avatar elachlan

Merge branch '8.x-1.x' of git.drupal.org:project/captcha into 8.x-1.x

parents 70c0d1a0 fcd3f603
......@@ -5,6 +5,7 @@
* Install, update and uninstall functions for the CAPTCHA module.
*/
use Drupal\captcha\Entity\CaptchaPoint;
use Drupal\Core\Url;
/**
......@@ -130,8 +131,8 @@ function captcha_install() {
'captchaType' => 'default',
'status' => FALSE,
];
$captcha_storage = \Drupal::entityTypeManager()->getStorage('captcha_point');
$captcha_storage->create($values)->save();
$captcha_point = new CaptchaPoint($values, 'captcha_point');
$captcha_point->trustData()->save();
}
// Explain to users that page caching may be disabled.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment