Commit b90b27a0 authored by catch's avatar catch

Issue #3174418 by paulocs, adhershmnair: Remove unused variable...

Issue #3174418 by paulocs, adhershmnair: Remove unused variable $revision_metadata_keys and $active_workspace_id
parent 2b6af211
......@@ -63,7 +63,7 @@ public function addField($field, $type, $langcode) {
// looking for workspace-specific revisions, we have to force the parent
// method to always pick the revision tables if the field being queried is
// revisionable.
if ($active_workspace_id = $this->sqlQuery->getMetaData('active_workspace_id')) {
if ($this->sqlQuery->getMetaData('active_workspace_id')) {
$previous_all_revisions = $this->sqlQuery->getMetaData('all_revisions');
$this->sqlQuery->addMetaData('all_revisions', TRUE);
}
......
......@@ -39,7 +39,6 @@ function workspaces_module_preinstall($module) {
$workspace_manager = \Drupal::service('workspaces.manager');
$entity_definition_update_manager = \Drupal::entityDefinitionUpdateManager();
foreach ($entity_definition_update_manager->getEntityTypes() as $entity_type) {
$revision_metadata_keys = $entity_type->get('revision_metadata_keys');
if ($workspace_manager->isEntityTypeSupported($entity_type)) {
$entity_type->setRevisionMetadataKey('workspace', 'workspace');
$entity_definition_update_manager->updateEntityType($entity_type);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment