@@ -15,7 +15,7 @@ function basic_auth_help($route_name, RouteMatchInterface $route_match) {
case'help.page.basic_auth':
$output='';
$output.='<h3>'.t('About').'</h3>';
$output.='<p>'.t('The HTTP Basic Authentication module supplies an <a href="http://en.wikipedia.org/wiki/Basic_access_authentication">HTTP Basic authentication</a> provider for web service requests. This authentication provider authenticates requests using the HTTP Basic Authentication username and password, as an alternative to using Drupal\'s standard cookie-based authentication system. It is only useful if your site provides web services configured to use this type of authentication (for instance, the <a href="!rest_help">RESTful Web Services module</a>). For more information, see <a href="!hba_do">the online documentation for the HTTP Basic Authentication module</a>.',array('!hba_do'=>'https://drupal.org/documentation/modules/basic_auth','!rest_help'=>\Drupal::url('help.page',array('name'=>'rest')))).'</p>';
$output.='<p>'.t('The HTTP Basic Authentication module supplies an <a href="http://en.wikipedia.org/wiki/Basic_access_authentication">HTTP Basic authentication</a> provider for web service requests. This authentication provider authenticates requests using the HTTP Basic Authentication username and password, as an alternative to using Drupal\'s standard cookie-based authentication system. It is only useful if your site provides web services configured to use this type of authentication (for instance, the <a href="!rest_help">RESTful Web Services module</a>). For more information, see <a href="!hba_do">the online documentation for the HTTP Basic Authentication module</a>.',array('!hba_do'=>'https://drupal.org/documentation/modules/basic_auth','!rest_help'=>\Drupal::url('help.page',array('name'=>'rest')))).'</p>';
@@ -85,7 +85,7 @@ function search_help($route_name, RouteMatchInterface $route_match) {
$output.='<dt>'.t('Displaying the Search block').'</dt>';
$output.='<dd>'.t('The Search module includes a block, which can be enabled and configured on the <a href="!blocks">Block layout page</a>, if you have the Block module enabled; the default block title is Search, and it is the Search form block in the Forms category, if you wish to add another instance. The block is available to users with the <a href="!search_permission">Use search</a> permission, and it performs a search using the configured default search page.',array('!blocks'=>(\Drupal::moduleHandler()->moduleExists('block'))?\Drupal::url('block.admin_display'):'#','!search_permission'=>\Drupal::url('user.admin_permissions',array(),array('fragment'=>'module-search')))).'</dd>';
$output.='<dt>'.t('Searching your site').'</dt>';
$output.='<dd>'.t('Users with <a href="!search_permission">Use search</a> permission can use the Search block and <a href="!search">Search page</a>. Users with the <a href="!node_permission">View published content</a> permission can use configured search pages of type <em>Content</em> to search for content containing exact keywords; in addition, users with <a href="!search_permission">Use advanced search</a> permission can use more complex search filtering. Users with the <a href="!user_permission">View user information</a> permission can use configured search pages of type <em>Users</em> to search for active users containing the keyword anywhere in the username, and users with the <a href="!user_permission">Administer users</a> permission can search for active and blocked users, by email address or username keyword.',array('!search'=>\Drupal::url('search.view'),'!search_permission'=>\Drupal::url('user.admin_permissions',array(),array('fragment'=>'module-search')),'!node_permission'=>\Drupal::url('user.admin_permissions',array(),array('fragment'=>'module-node')),'!user_permission'=>\Drupal::url('user.admin_permissions',array(),array('fragment'=>'module-user')))).'</dd>';
$output.='<dd>'.t('Users with <a href="!search_permission">Use search</a> permission can use the Search block and <a href="!search">Search page</a>. Users with the <a href="!node_permission">View published content</a> permission can use configured search pages of type <em>Content</em> to search for content containing exact keywords; in addition, users with <a href="!search_permission">Use advanced search</a> permission can use more complex search filtering. Users with the <a href="!user_permission">View user information</a> permission can use configured search pages of type <em>Users</em> to search for active users containing the keyword anywhere in the username, and users with the <a href="!user_permission">Administer users</a> permission can search for active and blocked users, by email address or username keyword.',array('!search'=>\Drupal::url('search.view'),'!search_permission'=>\Drupal::url('user.admin_permissions',array(),array('fragment'=>'module-search')),'!node_permission'=>\Drupal::url('user.admin_permissions',array(),array('fragment'=>'module-node')),'!user_permission'=>\Drupal::url('user.admin_permissions',array(),array('fragment'=>'module-user')))).'</dd>';
$output.='<dt>'.t('Extending the Search module').'</dt>';
$output.='<dd>'.t('By default, the Search module only supports exact keyword matching in content searches. You can modify this behavior by installing a language-specific stemming module for your language (such as <a href="!porterstemmer_url">Porter Stemmer</a> for American English), which allows words such as walk, walking, and walked to be matched in the Search module. Another approach is to use a third-party search technology with stemming or partial word matching features built in, such as <a href="!solr_url">Apache Solr</a> or <a href="!sphinx_url">Sphinx</a>. There are also contributed modules that provide additional search pages. These and other <a href="!contrib-search">search-related contributed modules</a> can be downloaded by visiting Drupal.org.',array('!contrib-search'=>'https://drupal.org/project/project_module?f[2]=im_vid_3%3A105','!porterstemmer_url'=>'https://drupal.org/project/porterstemmer','!solr_url'=>'https://drupal.org/project/apachesolr','!sphinx_url'=>'https://drupal.org/project/sphinx')).'</dd>';
@@ -137,13 +137,13 @@ protected function assertReadWrite($entity_type) {
$new_user=$this->createUser();
$entity->user_id->entity=$new_user;
$this->assertEqual($new_user->id(),$entity->user_id->target_id,format_string('%entity_type: Updated user id can be read.',array('%entity_type'=>$entity_type)));
$this->assertEqual($new_user->getUsername(),$entity->user_id->entity->name->value,format_string('%entity_type: Updated username value can be read.',array('%entity_type'=>$entity_type)));
$this->assertEqual($new_user->getUsername(),$entity->user_id->entity->name->value,format_string('%entity_type: Updated username value can be read.',array('%entity_type'=>$entity_type)));
// Change the assigned user by id.
$new_user=$this->createUser();
$entity->user_id->target_id=$new_user->id();
$this->assertEqual($new_user->id(),$entity->user_id->target_id,format_string('%entity_type: Updated user id can be read.',array('%entity_type'=>$entity_type)));
$this->assertEqual($new_user->getUsername(),$entity->user_id->entity->name->value,format_string('%entity_type: Updated username value can be read.',array('%entity_type'=>$entity_type)));
$this->assertEqual($new_user->getUsername(),$entity->user_id->entity->name->value,format_string('%entity_type: Updated username value can be read.',array('%entity_type'=>$entity_type)));
$this->assertText(t('Are you sure you want to cancel your account?'),'Confirmation form to cancel account displayed.');
$this->assertText(t('Your account will be blocked and you will no longer be able to log in. All of your content will remain attributed to your username.'),'Informs that all content will be remain as is.');
$this->assertText(t('Your account will be blocked and you will no longer be able to log in. All of your content will remain attributed to your username.'),'Informs that all content will be remain as is.');
$this->assertNoText(t('Select the method to cancel the account above.'),'Does not allow user to select account cancellation method.');
@@ -60,7 +60,7 @@ function user_help($route_name, RouteMatchInterface $route_match) {
$output.='<h3>'.t('Uses').'</h3>';
$output.='<dl>';
$output.='<dt>'.t('Creating and managing users').'</dt>';
$output.='<dd>'.t('Through the <a href="!people">People administration page</a> you can add and cancel user accounts and assign users to roles. By editing one particular user you can change their username, email address, password, and information in other fields.',array('!people'=>\Drupal::url('user.admin_account'))).'</dd>';
$output.='<dd>'.t('Through the <a href="!people">People administration page</a> you can add and cancel user accounts and assign users to roles. By editing one particular user you can change their username, email address, password, and information in other fields.',array('!people'=>\Drupal::url('user.admin_account'))).'</dd>';
$output.='<dt>'.t('Configuring user roles').'</dt>';
$output.='<dd>'.t('<em>Roles</em> are used to group and classify users; each user can be assigned one or more roles. Typically there are two pre-defined roles: <em>Anonymous user</em> (users that are not logged in), and <em>Authenticated user</em> (users that are registered and logged in). Depending on how your site was set up, an <em>Administrator</em> role may also be available: users with this role will automatically be assigned any new permissions whenever a module is enabled. You can create additional roles on the <a href="!roles">Roles administration page</a>.',array('!roles'=>\Drupal::url('user.role_list'))).'</dd>';
$output.='<dt>'.t('Setting permissions').'</dt>';
...
...
@@ -896,7 +896,7 @@ function user_cancel_methods() {
$methods=array(
'user_cancel_block'=>array(
'title'=>t('Disable the account and keep its content.'),
'description'=>t('Your account will be blocked and you will no longer be able to log in. All of your content will remain attributed to your username.'),
'description'=>t('Your account will be blocked and you will no longer be able to log in. All of your content will remain attributed to your username.'),
),
'user_cancel_block_unpublish'=>array(
'title'=>t('Disable the account and unpublish its content.'),