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

@ -75,4 +75,5 @@ class ContentTranslationOverviewAccess implements AccessInterface {
// No opinion.
return AccessResult::neutral();
}
}

View file

@ -696,6 +696,9 @@ class ContentTranslationHandler implements ContentTranslationHandlerInterface, E
*
* @param \Drupal\Core\Entity\EntityInterface $entity
* The entity whose form is being altered.
*
* @return string|null
* The label of the entity, or NULL if there is no label defined.
*/
protected function entityFormTitle(EntityInterface $entity) {
return $entity->label();
@ -710,4 +713,5 @@ class ContentTranslationHandler implements ContentTranslationHandlerInterface, E
public static function getDefaultOwnerId() {
return \Drupal::currentUser()->id();
}
}

View file

@ -74,7 +74,6 @@ interface ContentTranslationManagerInterface {
* @returns bool
* TRUE if the specified bundle is translatable. If no bundle is provided
* returns TRUE if at least one of the entity bundles is translatable.
*
*/
public function isEnabled($entity_type_id, $bundle = NULL);

View file

@ -146,4 +146,5 @@ class ContentTranslationMetadataWrapper implements ContentTranslationMetadataWra
$this->translation->set($field_name, $value);
}
}
}

View file

@ -140,4 +140,5 @@ class ContentTranslationMetadataFieldsTest extends ContentTranslationTestBase {
$this->assertNotEqual($metadata_source_translation->isPublished(), $metadata_target_translation->isPublished(), 'Metadata published field correctly different on both translations.');
$this->assertNotEqual($metadata_source_translation->getAuthor()->id(), $metadata_target_translation->getAuthor()->id(), 'Metadata author field correctly different on both translations.');
}
}