Update to Drupal 8.0.1. For more information, see https://www.drupal.org/node/2627402

This commit is contained in:
Pantheon Automation 2015-12-02 11:38:43 -08:00 committed by Greg Anderson
parent 013aaaf2ff
commit 1a0e9d9fac
153 changed files with 1268 additions and 670 deletions

View file

@ -467,7 +467,7 @@ class EntityType implements EntityTypeInterface {
}
/**
* Checks that the provided class is an instance of ConfigEntityStorage.
* Checks that the provided class is compatible with the current entity type.
*
* @param string $class
* The class to check.

View file

@ -19,7 +19,8 @@ class KeyValueContentEntityStorage extends KeyValueEntityStorage implements Cont
* {@inheritdoc}
*/
public function createTranslation(ContentEntityInterface $entity, $langcode, array $values = []) {
// @todo
// @todo Complete the content entity storage implementation in
// https://www.drupal.org/node/2618436.
}
}

View file

@ -254,7 +254,7 @@ class DefaultSelection extends PluginBase implements SelectionInterface, Selecti
}
$options = array();
$entities = entity_load_multiple($target_type, $result);
$entities = $this->entityManager->getStorage($target_type)->loadMultiple($result);
foreach ($entities as $entity_id => $entity) {
$bundle = $entity->bundle();
$options[$bundle][$entity_id] = Html::escape($entity->label());

View file

@ -1051,7 +1051,7 @@ function hook_ENTITY_TYPE_translation_create(\Drupal\Core\Entity\EntityInterface
*/
function hook_entity_translation_insert(\Drupal\Core\Entity\EntityInterface $translation) {
$variables = array(
'@language' => $translation->language()->name,
'@language' => $translation->language()->getName(),
'@label' => $translation->getUntranslated()->label(),
);
\Drupal::logger('example')->notice('The @language translation of @label has just been stored.', $variables);
@ -1071,7 +1071,7 @@ function hook_entity_translation_insert(\Drupal\Core\Entity\EntityInterface $tra
*/
function hook_ENTITY_TYPE_translation_insert(\Drupal\Core\Entity\EntityInterface $translation) {
$variables = array(
'@language' => $translation->language()->name,
'@language' => $translation->language()->getName(),
'@label' => $translation->getUntranslated()->label(),
);
\Drupal::logger('example')->notice('The @language translation of @label has just been stored.', $variables);
@ -1089,10 +1089,9 @@ function hook_ENTITY_TYPE_translation_insert(\Drupal\Core\Entity\EntityInterface
* @see hook_ENTITY_TYPE_translation_delete()
*/
function hook_entity_translation_delete(\Drupal\Core\Entity\EntityInterface $translation) {
$languages = \Drupal::languageManager()->getLanguages();
$variables = array(
'@language' => $languages[$langcode]->name,
'@label' => $entity->label(),
'@language' => $translation->language()->getName(),
'@label' => $translation->label(),
);
\Drupal::logger('example')->notice('The @language translation of @label has just been deleted.', $variables);
}
@ -1109,10 +1108,9 @@ function hook_entity_translation_delete(\Drupal\Core\Entity\EntityInterface $tra
* @see hook_entity_translation_delete()
*/
function hook_ENTITY_TYPE_translation_delete(\Drupal\Core\Entity\EntityInterface $translation) {
$languages = \Drupal::languageManager()->getLanguages();
$variables = array(
'@language' => $languages[$langcode]->name,
'@label' => $entity->label(),
'@language' => $translation->language()->getName(),
'@label' => $translation->label(),
);
\Drupal::logger('example')->notice('The @language translation of @label has just been deleted.', $variables);
}