Update to Drupal 8.1.2. For more information, see https://www.drupal.org/project/drupal/releases/8.1.2

This commit is contained in:
Pantheon Automation 2016-06-02 15:56:09 -07:00 committed by Greg Anderson
parent 9eae24d844
commit 28556d630e
1322 changed files with 6699 additions and 2064 deletions

View file

@ -38,7 +38,7 @@ function path_help($route_name, RouteMatchInterface $route_match) {
}
/**
* Implements hook_form_BASE_FORM_ID_alter() for node_form().
* Implements hook_form_BASE_FORM_ID_alter() for \Drupal\node\NodeForm.
*/
function path_form_node_form_alter(&$form, FormStateInterface $form_state) {
$node = $form_state->getFormObject()->getEntity();

View file

@ -90,4 +90,11 @@ class PathItem extends FieldItemBase {
return $values;
}
/**
* {@inheritdoc}
*/
public static function mainPropertyName() {
return 'alias';
}
}

View file

@ -59,7 +59,7 @@ class PathAliasTest extends PathTestBase {
// @todo Remove this once https://www.drupal.org/node/2480077 lands.
Cache::invalidateTags(['rendered']);
$this->drupalGet(trim($edit['alias'], '/'));
$this->assertTrue(\Drupal::cache('data')->get('preload-paths:' . $edit['source']), 'Cache entry was created.');
$this->assertTrue(\Drupal::cache('data')->get('preload-paths:' . $edit['source']), 'Cache entry was created.');
}
/**
@ -345,4 +345,5 @@ class PathAliasTest extends PathTestBase {
$this->assertText(t('The alias is already in use.'));
$this->assertFieldByXPath("//input[@name='path[0][alias]' and contains(@class, 'error')]", $edit['path[0][alias]'], 'Textfield exists and has the error class.');
}
}

View file

@ -187,4 +187,5 @@ class PathLanguageTest extends PathTestBase {
$english_node->save();
$this->assertFalse($this->container->get('path.alias_storage')->aliasExists('/' . $french_alias, 'fr'), 'Alias for French translation is removed when translation is deleted.');
}
}

View file

@ -77,4 +77,5 @@ class PathLanguageUiTest extends PathTestBase {
$this->drupalGet('fr/' . $name);
$this->assertText(t('Filter aliases'), 'Foreign URL alias works');
}
}

View file

@ -82,4 +82,5 @@ class PathTaxonomyTermTest extends PathTestBase {
$this->assertNoText($description, 'Old URL alias has been removed after altering.');
$this->assertResponse(404, 'Old URL alias returns 404.');
}
}

View file

@ -25,4 +25,5 @@ abstract class PathTestBase extends WebTestBase {
$this->drupalCreateContentType(array('type' => 'article', 'name' => 'Article'));
}
}
}