Update to Drupal 8.1.0. For more information, see https://www.drupal.org/drupal-8.1.0-release-notes

This commit is contained in:
Pantheon Automation 2016-04-20 09:56:34 -07:00 committed by Greg Anderson
parent b11a755ba8
commit c0a0d5a94c
6920 changed files with 64395 additions and 57312 deletions

View file

@ -1,5 +1,10 @@
<?php
/**
* @file
* Enables the user registration and login system.
*/
use Drupal\Component\Utility\Crypt;
use Drupal\Component\Render\PlainTextOutput;
use Drupal\Component\Utility\Unicode;
@ -13,16 +18,12 @@ use Drupal\Core\Session\AccountInterface;
use Drupal\Core\Session\AnonymousUserSession;
use Drupal\Core\Site\Settings;
use Drupal\Core\Url;
use Drupal\system\Entity\Action;
use Drupal\user\Entity\Role;
use Drupal\user\Entity\User;
use Drupal\user\RoleInterface;
use Drupal\user\UserInterface;
/**
* @file
* Enables the user registration and login system.
*/
/**
* Maximum length of username text field.
*
@ -985,7 +986,7 @@ function user_user_role_insert(RoleInterface $role) {
$add_id = 'user_add_role_action.' . $role->id();
if (!entity_load('action', $add_id)) {
$action = entity_create('action', array(
$action = Action::create(array(
'id' => $add_id,
'type' => 'user',
'label' => t('Add the @label role to the selected users', array('@label' => $role->label())),
@ -998,7 +999,7 @@ function user_user_role_insert(RoleInterface $role) {
}
$remove_id = 'user_remove_role_action.' . $role->id();
if (!entity_load('action', $remove_id)) {
$action = entity_create('action', array(
$action = Action::create(array(
'id' => $remove_id,
'type' => 'user',
'label' => t('Remove the @label role from the selected users', array('@label' => $role->label())),