diff --git a/core/includes/entity.inc b/core/includes/entity.inc index 39701ef14637c45e520af72d43fed87b9d90e3c1..fa5f370c3362c737bb9a874943dfdd2343e98b86 100644 --- a/core/includes/entity.inc +++ b/core/includes/entity.inc @@ -240,7 +240,12 @@ function entity_revision_delete($entity_type, $revision_id) { */ function entity_load_by_uuid($entity_type_id, $uuid, $reset = FALSE) { $entity_type = \Drupal::entityManager()->getDefinition($entity_type_id); - if (!$uuid_key = $entity_type->getKey('uuid')) { + + // Configuration entities do not use annotations to set the UUID key. + if ($entity_type->isSubclassOf('Drupal\Core\Config\Entity\ConfigEntityInterface')) { + $uuid_key = 'uuid'; + } + elseif (!$uuid_key = $entity_type->getKey('uuid')) { throw new EntityStorageException("Entity type $entity_type_id does not support UUIDs."); } diff --git a/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php b/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php index 42ad63e588ad5763a8220c928efb19c3701cdba1..87b43f7055956b3a2faa53b8d2675d9b3febf214 100644 --- a/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php +++ b/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php @@ -174,7 +174,12 @@ public function isSyncing() { * {@inheritdoc} */ public function createDuplicate() { - $duplicate = parent::createDuplicate(); + $duplicate = clone $this; + $duplicate->set($this->getEntityType()->getKey('id'), NULL); + + // @todo Inject the UUID service into the Entity class once possible. + $duplicate->set('uuid', \Drupal::service('uuid')->generate()); + // Prevent the new duplicate from being misinterpreted as a rename. $duplicate->setOriginalId(NULL); return $duplicate; diff --git a/core/lib/Drupal/Core/Config/Entity/ConfigStorageController.php b/core/lib/Drupal/Core/Config/Entity/ConfigStorageController.php index 46db8c78c8b11cea3dda18f20cf180aa7c04cd4d..a70ad36868e90d2d0eaa02dca0970b2d9f3e2d8d 100644 --- a/core/lib/Drupal/Core/Config/Entity/ConfigStorageController.php +++ b/core/lib/Drupal/Core/Config/Entity/ConfigStorageController.php @@ -37,13 +37,6 @@ */ class ConfigStorageController extends EntityStorageControllerBase implements ConfigStorageControllerInterface { - /** - * Name of the entity's UUID property. - * - * @var string - */ - protected $uuidKey = 'uuid'; - /** * The UUID service. * @@ -261,8 +254,8 @@ public function create(array $values = array()) { $entity->enforceIsNew(); // Assign a new UUID if there is none yet. - if (!isset($entity->{$this->uuidKey})) { - $entity->{$this->uuidKey} = $this->uuidService->generate(); + if (!$entity->uuid()) { + $entity->set('uuid', $this->uuidService->generate()); } $entity->postCreate($this); diff --git a/core/modules/block/custom_block/lib/Drupal/custom_block/Entity/CustomBlockType.php b/core/modules/block/custom_block/lib/Drupal/custom_block/Entity/CustomBlockType.php index 7c3ce1133f6ff26c383e18d271d68adad7f509d0..48bef95d7cb252426c54347bd246e770b1e87a4d 100644 --- a/core/modules/block/custom_block/lib/Drupal/custom_block/Entity/CustomBlockType.php +++ b/core/modules/block/custom_block/lib/Drupal/custom_block/Entity/CustomBlockType.php @@ -31,8 +31,7 @@ * bundle_of = "custom_block", * entity_keys = { * "id" = "id", - * "label" = "label", - * "uuid" = "uuid" + * "label" = "label" * }, * links = { * "delete-form" = "custom_block.type_delete", diff --git a/core/modules/block/lib/Drupal/block/Entity/Block.php b/core/modules/block/lib/Drupal/block/Entity/Block.php index d4e30393dc016b75d37378fbecedaf92bb659de6..c0d4de98b6b998f2b9b338539a0d468c0ed66c71 100644 --- a/core/modules/block/lib/Drupal/block/Entity/Block.php +++ b/core/modules/block/lib/Drupal/block/Entity/Block.php @@ -31,8 +31,7 @@ * fieldable = FALSE, * entity_keys = { * "id" = "id", - * "label" = "label", - * "uuid" = "uuid" + * "label" = "label" * }, * links = { * "delete-form" = "block.admin_block_delete", diff --git a/core/modules/breakpoint/lib/Drupal/breakpoint/Entity/Breakpoint.php b/core/modules/breakpoint/lib/Drupal/breakpoint/Entity/Breakpoint.php index 69283d8998eb75316c5f769ffacda45422dc6d61..08ae4b689a70a0beb02090cf218772b33b69719a 100644 --- a/core/modules/breakpoint/lib/Drupal/breakpoint/Entity/Breakpoint.php +++ b/core/modules/breakpoint/lib/Drupal/breakpoint/Entity/Breakpoint.php @@ -23,8 +23,7 @@ * label = @Translation("Breakpoint"), * entity_keys = { * "id" = "id", - * "label" = "label", - * "uuid" = "uuid" + * "label" = "label" * } * ) */ diff --git a/core/modules/breakpoint/lib/Drupal/breakpoint/Entity/BreakpointGroup.php b/core/modules/breakpoint/lib/Drupal/breakpoint/Entity/BreakpointGroup.php index 08c63bf09bcac6f7783232becbd01cd1afb7c53b..f3807afe2f3d872630e90d2a8ac6a992752f476f 100644 --- a/core/modules/breakpoint/lib/Drupal/breakpoint/Entity/BreakpointGroup.php +++ b/core/modules/breakpoint/lib/Drupal/breakpoint/Entity/BreakpointGroup.php @@ -20,8 +20,7 @@ * label = @Translation("Breakpoint group"), * entity_keys = { * "id" = "id", - * "label" = "label", - * "uuid" = "uuid" + * "label" = "label" * } * ) */ diff --git a/core/modules/config/lib/Drupal/config/Form/ConfigSingleExportForm.php b/core/modules/config/lib/Drupal/config/Form/ConfigSingleExportForm.php index 2f146c6e2be8a158875d33e1adfe3ee895af8ae7..cee2fb9530e319774d0f7d57fb868c7ccf63a3ef 100644 --- a/core/modules/config/lib/Drupal/config/Form/ConfigSingleExportForm.php +++ b/core/modules/config/lib/Drupal/config/Form/ConfigSingleExportForm.php @@ -75,7 +75,7 @@ public function getFormID() { */ public function buildForm(array $form, array &$form_state, $config_type = NULL, $config_name = NULL) { foreach ($this->entityManager->getDefinitions() as $entity_type => $definition) { - if ($definition->getConfigPrefix() && $definition->hasKey('uuid')) { + if ($definition->isSubclassOf('Drupal\Core\Config\Entity\ConfigEntityInterface')) { $this->definitions[$entity_type] = $definition; } } diff --git a/core/modules/config/lib/Drupal/config/Form/ConfigSingleImportForm.php b/core/modules/config/lib/Drupal/config/Form/ConfigSingleImportForm.php index 8f0d076abdb3a4b4d8f1a7f8d4198c6ad9cc6584..434745e1b831dfdace6bf7c80be3592f5c4984cb 100644 --- a/core/modules/config/lib/Drupal/config/Form/ConfigSingleImportForm.php +++ b/core/modules/config/lib/Drupal/config/Form/ConfigSingleImportForm.php @@ -122,7 +122,7 @@ public function buildForm(array $form, array &$form_state) { $entity_types = array(); foreach ($this->entityManager->getDefinitions() as $entity_type => $definition) { - if ($definition->getConfigPrefix() && $definition->hasKey('uuid')) { + if ($definition->isSubclassOf('Drupal\Core\Config\Entity\ConfigEntityInterface')) { $entity_types[$entity_type] = $definition->getLabel(); } } @@ -187,21 +187,20 @@ public function validateForm(array &$form, array &$form_state) { $this->setFormError('import', $form_state, $this->t('Missing ID key "@id_key" for this @entity_type import.', array('@id_key' => $id_key, '@entity_type' => $definition->getLabel()))); return; } - $uuid_key = $definition->getKey('uuid'); // If there is an existing entity, ensure matching ID and UUID. if ($entity = $entity_storage->load($data[$id_key])) { $this->configExists = $entity; - if (!isset($data[$uuid_key])) { + if (!isset($data['uuid'])) { $this->setFormError('import', $form_state, $this->t('An entity with this machine name already exists but the import did not specify a UUID.')); return; } - if ($data[$uuid_key] !== $entity->uuid()) { + if ($data['uuid'] !== $entity->uuid()) { $this->setFormError('import', $form_state, $this->t('An entity with this machine name already exists but the UUID does not match.')); return; } } // If there is no entity with a matching ID, check for a UUID match. - elseif (isset($data[$uuid_key]) && $entity_storage->loadByProperties(array($uuid_key => $data[$uuid_key]))) { + elseif (isset($data['uuid']) && $entity_storage->loadByProperties(array('uuid' => $data['uuid']))) { $this->setFormError('import', $form_state, $this->t('An entity with this UUID already exists but the machine name does not match.')); } } diff --git a/core/modules/config/lib/Drupal/config/Tests/ConfigEntityUnitTest.php b/core/modules/config/lib/Drupal/config/Tests/ConfigEntityUnitTest.php index df6c96dba0eead295943c15fee6097fabd09895f..55ded74f3e7e560fbc2e0a0c9848c8daf04be71a 100644 --- a/core/modules/config/lib/Drupal/config/Tests/ConfigEntityUnitTest.php +++ b/core/modules/config/lib/Drupal/config/Tests/ConfigEntityUnitTest.php @@ -78,6 +78,13 @@ public function testStorageControllerMethods() { )); $entity->save(); + // Ensure that the configuration entity can be loaded by UUID. + $entity_loaded_by_uuid = entity_load_by_uuid($entity_type->id(), $entity->uuid()); + // Compare UUIDs as the objects are not identical since + // $entity->enforceIsNew is FALSE and $entity_loaded_by_uuid->enforceIsNew + // is NULL. + $this->assertIdentical($entity->uuid(), $entity_loaded_by_uuid->uuid()); + $entities = $this->storage->loadByProperties(); $this->assertEqual(count($entities), 3, 'Three entities are loaded when no properties are specified.'); diff --git a/core/modules/config/lib/Drupal/config/Tests/ConfigSingleImportExportTest.php b/core/modules/config/lib/Drupal/config/Tests/ConfigSingleImportExportTest.php index bfa8304d1df033b81ed9ab4b1ed896e5d6a8ddda..fbd7497175eebf068f9bc97e4eb75f6cc3a3395c 100644 --- a/core/modules/config/lib/Drupal/config/Tests/ConfigSingleImportExportTest.php +++ b/core/modules/config/lib/Drupal/config/Tests/ConfigSingleImportExportTest.php @@ -124,7 +124,7 @@ public function testExport() { $this->drupalLogin($this->drupalCreateUser(array('export configuration'))); $this->drupalGet('admin/config/development/configuration/single/export/system.simple'); - $this->assertFieldByXPath('//select[@name="config_type"]//option', t('Date format'), 'The date format entity type is selected when specified in the URL.'); + $this->assertFieldByXPath('//select[@name="config_type"]//option[@selected="selected"]', t('Simple configuration'), 'The simple configuration option is selected when specified in the URL.'); // Spot check several known simple configuration files. $element = $this->xpath('//select[@name="config_name"]'); $options = $this->getAllOptions($element[0]); @@ -138,10 +138,10 @@ public function testExport() { $this->assertFieldByXPath('//textarea[@name="export"]', "toolkit: gd\n", 'The expected system configuration is displayed.'); $this->drupalGet('admin/config/development/configuration/single/export/date_format'); - $this->assertFieldByXPath('//select[@name="config_type"]//option', t('Date format'), 'The date format entity type is selected when specified in the URL.'); + $this->assertFieldByXPath('//select[@name="config_type"]//option[@selected="selected"]', t('Date format'), 'The date format entity type is selected when specified in the URL.'); $this->drupalGet('admin/config/development/configuration/single/export/date_format/fallback'); - $this->assertFieldByXPath('//select[@name="config_name"]//option', t('Fallback date format'), 'The fallback date format config entity is selected when specified in the URL.'); + $this->assertFieldByXPath('//select[@name="config_name"]//option[@selected="selected"]', t('Fallback date format'), 'The fallback date format config entity is selected when specified in the URL.'); $fallback_date = \Drupal::entityManager()->getStorageController('date_format')->load('fallback'); $data = \Drupal::service('config.storage')->encode($fallback_date->getExportProperties()); diff --git a/core/modules/config/tests/config_test/lib/Drupal/config_test/Entity/ConfigQueryTest.php b/core/modules/config/tests/config_test/lib/Drupal/config_test/Entity/ConfigQueryTest.php index 296b2fe2a1d34f6e428621ced49fbfee2e6e923d..c3528f960b230f4eeb309cdd3bd19caf820adcf5 100644 --- a/core/modules/config/tests/config_test/lib/Drupal/config_test/Entity/ConfigQueryTest.php +++ b/core/modules/config/tests/config_test/lib/Drupal/config_test/Entity/ConfigQueryTest.php @@ -23,8 +23,7 @@ * config_prefix = "query", * entity_keys = { * "id" = "id", - * "label" = "label", - * "uuid" = "uuid" + * "label" = "label" * } * ) * diff --git a/core/modules/config/tests/config_test/lib/Drupal/config_test/Entity/ConfigTest.php b/core/modules/config/tests/config_test/lib/Drupal/config_test/Entity/ConfigTest.php index d9c4cfad5d7aab2c3180931de274a06d626b3b9e..1bb4deb3d1557ca37a542cb3a6cb80e207619392 100644 --- a/core/modules/config/tests/config_test/lib/Drupal/config_test/Entity/ConfigTest.php +++ b/core/modules/config/tests/config_test/lib/Drupal/config_test/Entity/ConfigTest.php @@ -29,7 +29,6 @@ * entity_keys = { * "id" = "id", * "label" = "label", - * "uuid" = "uuid", * "status" = "status" * }, * links = { diff --git a/core/modules/contact/lib/Drupal/contact/Entity/Category.php b/core/modules/contact/lib/Drupal/contact/Entity/Category.php index db502c7c913396ac6cd12feeedfd6ca00d1da1e3..b2f24604bd9d9694a2a01183101adb7f5dbbaae5 100644 --- a/core/modules/contact/lib/Drupal/contact/Entity/Category.php +++ b/core/modules/contact/lib/Drupal/contact/Entity/Category.php @@ -31,8 +31,7 @@ * bundle_of = "contact_message", * entity_keys = { * "id" = "id", - * "label" = "label", - * "uuid" = "uuid" + * "label" = "label" * }, * links = { * "delete-form" = "contact.category_delete", diff --git a/core/modules/editor/lib/Drupal/editor/Entity/Editor.php b/core/modules/editor/lib/Drupal/editor/Entity/Editor.php index 7573c281dac5f9c39dfac508101e0bacb33a9263..0053de400209d9013b007f856c4a90e5f4d7bb38 100644 --- a/core/modules/editor/lib/Drupal/editor/Entity/Editor.php +++ b/core/modules/editor/lib/Drupal/editor/Entity/Editor.php @@ -17,8 +17,7 @@ * id = "editor", * label = @Translation("Editor"), * entity_keys = { - * "id" = "format", - * "uuid" = "uuid" + * "id" = "format" * } * ) */ diff --git a/core/modules/entity/lib/Drupal/entity/Entity/EntityFormDisplay.php b/core/modules/entity/lib/Drupal/entity/Entity/EntityFormDisplay.php index 611e28fd23096b9a7b7745808fb39183fd606d19..18b8dc5a110ae6b6d61e9725ff177fcbe10516a2 100644 --- a/core/modules/entity/lib/Drupal/entity/Entity/EntityFormDisplay.php +++ b/core/modules/entity/lib/Drupal/entity/Entity/EntityFormDisplay.php @@ -20,7 +20,6 @@ * config_prefix = "form_display", * entity_keys = { * "id" = "id", - * "uuid" = "uuid", * "status" = "status" * } * ) diff --git a/core/modules/entity/lib/Drupal/entity/Entity/EntityFormMode.php b/core/modules/entity/lib/Drupal/entity/Entity/EntityFormMode.php index eea183ce745374859ad7db9c52bd366e31cd888e..4b571390efe2cd0a5b3d1457305e571764abba2f 100644 --- a/core/modules/entity/lib/Drupal/entity/Entity/EntityFormMode.php +++ b/core/modules/entity/lib/Drupal/entity/Entity/EntityFormMode.php @@ -42,8 +42,7 @@ * admin_permission = "administer display modes", * entity_keys = { * "id" = "id", - * "label" = "label", - * "uuid" = "uuid" + * "label" = "label" * }, * links = { * "delete-form" = "entity.form_mode_delete", diff --git a/core/modules/entity/lib/Drupal/entity/Entity/EntityViewDisplay.php b/core/modules/entity/lib/Drupal/entity/Entity/EntityViewDisplay.php index bb57639c2515d94b2226f558424fb2b3adcda7d5..a35c4ac6a1091f5d8d9263c4187536b0cc70ab9c 100644 --- a/core/modules/entity/lib/Drupal/entity/Entity/EntityViewDisplay.php +++ b/core/modules/entity/lib/Drupal/entity/Entity/EntityViewDisplay.php @@ -25,7 +25,6 @@ * config_prefix = "view_display", * entity_keys = { * "id" = "id", - * "uuid" = "uuid", * "status" = "status" * } * ) diff --git a/core/modules/entity/lib/Drupal/entity/Entity/EntityViewMode.php b/core/modules/entity/lib/Drupal/entity/Entity/EntityViewMode.php index fd30fb57f50bc39dfcd5caba898842c601b33f06..2d98442d3843b05fa90ee71de56ae71840b3cd81 100644 --- a/core/modules/entity/lib/Drupal/entity/Entity/EntityViewMode.php +++ b/core/modules/entity/lib/Drupal/entity/Entity/EntityViewMode.php @@ -42,8 +42,7 @@ * admin_permission = "administer display modes", * entity_keys = { * "id" = "id", - * "label" = "label", - * "uuid" = "uuid" + * "label" = "label" * }, * links = { * "delete-form" = "entity.view_mode_delete", diff --git a/core/modules/field/lib/Drupal/field/Entity/FieldConfig.php b/core/modules/field/lib/Drupal/field/Entity/FieldConfig.php index da997b6c464a10c50517722c28f541093ea5a47b..503fe14b7e004804c49a50b81e94610be9accda7 100644 --- a/core/modules/field/lib/Drupal/field/Entity/FieldConfig.php +++ b/core/modules/field/lib/Drupal/field/Entity/FieldConfig.php @@ -28,8 +28,7 @@ * config_prefix = "field", * entity_keys = { * "id" = "id", - * "label" = "id", - * "uuid" = "uuid" + * "label" = "id" * } * ) */ diff --git a/core/modules/field/lib/Drupal/field/Entity/FieldInstanceConfig.php b/core/modules/field/lib/Drupal/field/Entity/FieldInstanceConfig.php index 3c35bfbba29b078266ed0bea135a1d7c66197bbf..6024061e680d94a83ce44a711c35efdf95f568dc 100644 --- a/core/modules/field/lib/Drupal/field/Entity/FieldInstanceConfig.php +++ b/core/modules/field/lib/Drupal/field/Entity/FieldInstanceConfig.php @@ -27,8 +27,7 @@ * config_prefix = "instance", * entity_keys = { * "id" = "id", - * "label" = "label", - * "uuid" = "uuid" + * "label" = "label" * } * ) */ diff --git a/core/modules/filter/lib/Drupal/filter/Entity/FilterFormat.php b/core/modules/filter/lib/Drupal/filter/Entity/FilterFormat.php index 11a4675d3819f9b80a9c47957bb98b5b287f8efd..09e098fd579c4d31605af25be98f8739b0aa83c4 100644 --- a/core/modules/filter/lib/Drupal/filter/Entity/FilterFormat.php +++ b/core/modules/filter/lib/Drupal/filter/Entity/FilterFormat.php @@ -35,7 +35,6 @@ * entity_keys = { * "id" = "format", * "label" = "name", - * "uuid" = "uuid", * "weight" = "weight", * "status" = "status" * }, diff --git a/core/modules/image/lib/Drupal/image/Entity/ImageStyle.php b/core/modules/image/lib/Drupal/image/Entity/ImageStyle.php index 6e5babdf54657cfb9dbba0341c24e68985dada55..2d9304cdd64a9b61a7ff721a738a783bd6cf4bac 100644 --- a/core/modules/image/lib/Drupal/image/Entity/ImageStyle.php +++ b/core/modules/image/lib/Drupal/image/Entity/ImageStyle.php @@ -36,8 +36,7 @@ * config_prefix = "style", * entity_keys = { * "id" = "name", - * "label" = "label", - * "uuid" = "uuid" + * "label" = "label" * }, * links = { * "flush-form" = "image.style_flush", diff --git a/core/modules/language/lib/Drupal/language/Entity/Language.php b/core/modules/language/lib/Drupal/language/Entity/Language.php index a9dee76d403f854bf0e58a6d3afe07d1e34ce760..7c923518ab4076737594860e733fb204d32bab7b 100644 --- a/core/modules/language/lib/Drupal/language/Entity/Language.php +++ b/core/modules/language/lib/Drupal/language/Entity/Language.php @@ -32,8 +32,7 @@ * entity_keys = { * "id" = "id", * "label" = "label", - * "weight" = "weight", - * "uuid" = "uuid" + * "weight" = "weight" * }, * links = { * "delete-form" = "language.delete", diff --git a/core/modules/migrate/lib/Drupal/migrate/Entity/Migration.php b/core/modules/migrate/lib/Drupal/migrate/Entity/Migration.php index 0f06a6e199c087472bbac93dd7573452cc5b3bba..3967aec1f199eea37968d55d4ddfda6f8da957d2 100644 --- a/core/modules/migrate/lib/Drupal/migrate/Entity/Migration.php +++ b/core/modules/migrate/lib/Drupal/migrate/Entity/Migration.php @@ -32,8 +32,7 @@ * entity_keys = { * "id" = "id", * "label" = "label", - * "weight" = "weight", - * "uuid" = "uuid" + * "weight" = "weight" * } * ) */ diff --git a/core/modules/node/lib/Drupal/node/Entity/NodeType.php b/core/modules/node/lib/Drupal/node/Entity/NodeType.php index a7418d87072f4f522615fdb799c19d9785665869..97d902935edb7a143f71404a4cce7e7049578996 100644 --- a/core/modules/node/lib/Drupal/node/Entity/NodeType.php +++ b/core/modules/node/lib/Drupal/node/Entity/NodeType.php @@ -33,8 +33,7 @@ * bundle_of = "node", * entity_keys = { * "id" = "type", - * "label" = "name", - * "uuid" = "uuid" + * "label" = "name" * }, * links = { * "add-form" = "node.add", diff --git a/core/modules/picture/lib/Drupal/picture/Entity/PictureMapping.php b/core/modules/picture/lib/Drupal/picture/Entity/PictureMapping.php index 883a0e61b49417ce70058250772446851463e7e6..ba1351d6efdefde5c6220e65872bef54291a841d 100644 --- a/core/modules/picture/lib/Drupal/picture/Entity/PictureMapping.php +++ b/core/modules/picture/lib/Drupal/picture/Entity/PictureMapping.php @@ -30,8 +30,7 @@ * config_prefix = "mappings", * entity_keys = { * "id" = "id", - * "label" = "label", - * "uuid" = "uuid" + * "label" = "label" * }, * links = { * "edit-form" = "picture.mapping_page_edit", diff --git a/core/modules/rdf/lib/Drupal/rdf/Entity/RdfMapping.php b/core/modules/rdf/lib/Drupal/rdf/Entity/RdfMapping.php index 2ca8a7b82b2969ad24e93f330bf491d908b71573..19163205c3796425522c6bfe692acdb9db989bd4 100644 --- a/core/modules/rdf/lib/Drupal/rdf/Entity/RdfMapping.php +++ b/core/modules/rdf/lib/Drupal/rdf/Entity/RdfMapping.php @@ -19,8 +19,7 @@ * label = @Translation("RDF mapping"), * config_prefix = "mapping", * entity_keys = { - * "id" = "id", - * "uuid" = "uuid" + * "id" = "id" * } * ) */ diff --git a/core/modules/search/lib/Drupal/search/Entity/SearchPage.php b/core/modules/search/lib/Drupal/search/Entity/SearchPage.php index 45b249d8891d568f187037085c9b66cffde1fe42..b992a765ee5ff57496d1f1a7c26095d66db5acc8 100644 --- a/core/modules/search/lib/Drupal/search/Entity/SearchPage.php +++ b/core/modules/search/lib/Drupal/search/Entity/SearchPage.php @@ -44,7 +44,6 @@ * entity_keys = { * "id" = "id", * "label" = "label", - * "uuid" = "uuid", * "weight" = "weight", * "status" = "status" * } diff --git a/core/modules/shortcut/lib/Drupal/shortcut/Entity/ShortcutSet.php b/core/modules/shortcut/lib/Drupal/shortcut/Entity/ShortcutSet.php index ab6a85de3445a545b6e6a18642e379c687c95d86..ce52aca3369d269aff662ea50e4b29b22812e07d 100644 --- a/core/modules/shortcut/lib/Drupal/shortcut/Entity/ShortcutSet.php +++ b/core/modules/shortcut/lib/Drupal/shortcut/Entity/ShortcutSet.php @@ -33,8 +33,7 @@ * config_prefix = "set", * entity_keys = { * "id" = "id", - * "label" = "label", - * "uuid" = "uuid" + * "label" = "label" * }, * links = { * "customize-form" = "shortcut.set_customize", diff --git a/core/modules/system/lib/Drupal/system/Entity/Action.php b/core/modules/system/lib/Drupal/system/Entity/Action.php index a48743310d6716942e4167ef9f10fd76c085a20e..972b4a34dde54eac162aff12febae071bf8fa59b 100644 --- a/core/modules/system/lib/Drupal/system/Entity/Action.php +++ b/core/modules/system/lib/Drupal/system/Entity/Action.php @@ -22,8 +22,7 @@ * admin_permission = "administer actions", * entity_keys = { * "id" = "id", - * "label" = "label", - * "uuid" = "uuid" + * "label" = "label" * } * ) */ diff --git a/core/modules/system/lib/Drupal/system/Entity/DateFormat.php b/core/modules/system/lib/Drupal/system/Entity/DateFormat.php index 593e5bf42e1361cc8345d193e99b0cdf514bbde6..71c24513f13d636ef07f17d71fc193206eb58b28 100644 --- a/core/modules/system/lib/Drupal/system/Entity/DateFormat.php +++ b/core/modules/system/lib/Drupal/system/Entity/DateFormat.php @@ -29,8 +29,7 @@ * }, * entity_keys = { * "id" = "id", - * "label" = "label", - * "uuid" = "uuid" + * "label" = "label" * }, * admin_permission = "administer site configuration", * links = { diff --git a/core/modules/system/lib/Drupal/system/Entity/Menu.php b/core/modules/system/lib/Drupal/system/Entity/Menu.php index 7477a8356c984e05cc0d531f5870dfe3779254cc..e8aecff5b68e8dd21cb8145ee8e8edfbccdcea39 100644 --- a/core/modules/system/lib/Drupal/system/Entity/Menu.php +++ b/core/modules/system/lib/Drupal/system/Entity/Menu.php @@ -24,8 +24,7 @@ * admin_permission = "administer menu", * entity_keys = { * "id" = "id", - * "label" = "label", - * "uuid" = "uuid" + * "label" = "label" * } * ) */ diff --git a/core/modules/taxonomy/lib/Drupal/taxonomy/Entity/Vocabulary.php b/core/modules/taxonomy/lib/Drupal/taxonomy/Entity/Vocabulary.php index d1d763a3e932c8da83600de2b9a8f9920d8a040f..6a0132a1d9374a2be0ba7f66d97cbeed5ea22f8a 100644 --- a/core/modules/taxonomy/lib/Drupal/taxonomy/Entity/Vocabulary.php +++ b/core/modules/taxonomy/lib/Drupal/taxonomy/Entity/Vocabulary.php @@ -32,8 +32,7 @@ * entity_keys = { * "id" = "vid", * "label" = "name", - * "weight" = "weight", - * "uuid" = "uuid" + * "weight" = "weight" * }, * links = { * "add-form" = "taxonomy.term_add", diff --git a/core/modules/tour/lib/Drupal/tour/Entity/Tour.php b/core/modules/tour/lib/Drupal/tour/Entity/Tour.php index f00d1fca8b10f1a6bab148a75cc5a3e005d633bb..f5814889ea92d73d864480a5901b4241888b2738 100644 --- a/core/modules/tour/lib/Drupal/tour/Entity/Tour.php +++ b/core/modules/tour/lib/Drupal/tour/Entity/Tour.php @@ -22,8 +22,7 @@ * }, * entity_keys = { * "id" = "id", - * "label" = "label", - * "uuid" = "uuid" + * "label" = "label" * } * ) */ diff --git a/core/modules/user/lib/Drupal/user/Entity/Role.php b/core/modules/user/lib/Drupal/user/Entity/Role.php index c89dea803eff33c2f260f966fbef4d6ae5a62e0e..49152e353e7829476f73e5db21f5b7fa445030ef 100644 --- a/core/modules/user/lib/Drupal/user/Entity/Role.php +++ b/core/modules/user/lib/Drupal/user/Entity/Role.php @@ -31,7 +31,6 @@ * config_prefix = "role", * entity_keys = { * "id" = "id", - * "uuid" = "uuid", * "weight" = "weight", * "label" = "label" * }, diff --git a/core/modules/views/lib/Drupal/views/Entity/View.php b/core/modules/views/lib/Drupal/views/Entity/View.php index 00063109920fb758bcda9e1a5f599770ca3e2611..62e5536bf7a83d72857a1aff4ba11e3d900e67e0 100644 --- a/core/modules/views/lib/Drupal/views/Entity/View.php +++ b/core/modules/views/lib/Drupal/views/Entity/View.php @@ -29,7 +29,6 @@ * entity_keys = { * "id" = "id", * "label" = "label", - * "uuid" = "uuid", * "status" = "status" * } * )