Skip to content
Snippets Groups Projects
Commit af16e10d authored by catch's avatar catch
Browse files

Issue #3093214 by amateescu: Remove workspaces.module BC layers

parent 66ad65a1
No related branches found
No related tags found
6 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!1012Issue #3226887: Hreflang on non-canonical content pages,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10,!596Issue #3046532: deleting an entity reference field, used in a contextual view, makes the whole site unrecoverable,!496Issue #2463967: Use .user.ini file for PHP settings,!144Issue #2666286: Clean up menu_ui to conform to Drupal coding standards
...@@ -130,14 +130,6 @@ public function publish() { ...@@ -130,14 +130,6 @@ public function publish() {
return \Drupal::service('workspaces.operation_factory')->getPublisher($this)->publish(); return \Drupal::service('workspaces.operation_factory')->getPublisher($this)->publish();
} }
/**
* {@inheritdoc}
*/
public function isDefaultWorkspace() {
@trigger_error('WorkspaceInterface::isDefaultWorkspace() is deprecated in drupal:8.8.0 and is removed from drupal:9.0.0. Use \Drupal\workspaces\WorkspaceManager::hasActiveWorkspace() instead. See https://www.drupal.org/node/3071527', E_USER_DEPRECATED);
return FALSE;
}
/** /**
* {@inheritdoc} * {@inheritdoc}
*/ */
...@@ -193,18 +185,4 @@ public static function postDelete(EntityStorageInterface $storage, array $entiti ...@@ -193,18 +185,4 @@ public static function postDelete(EntityStorageInterface $storage, array $entiti
\Drupal::service('workspaces.manager')->purgeDeletedWorkspacesBatch(); \Drupal::service('workspaces.manager')->purgeDeletedWorkspacesBatch();
} }
/**
* Default value callback for 'uid' base field definition.
*
* @deprecated The ::getCurrentUserId method is deprecated in 8.6.x and will
* be removed before 9.0.0.
*
* @return int[]
* An array containing the ID of the current user.
*/
public static function getCurrentUserId() {
@trigger_error('The ::getCurrentUserId method is deprecated in 8.6.x and will be removed before 9.0.0.', E_USER_DEPRECATED);
return [\Drupal::currentUser()->id()];
}
} }
...@@ -11,34 +11,11 @@ ...@@ -11,34 +11,11 @@
*/ */
interface WorkspaceInterface extends ContentEntityInterface, EntityChangedInterface, EntityOwnerInterface { interface WorkspaceInterface extends ContentEntityInterface, EntityChangedInterface, EntityOwnerInterface {
/**
* The ID of the default workspace.
*
* @deprecated in drupal:8.8.0 and is removed from drupal:9.0.0. Use
* \Drupal\workspaces\WorkspaceManager::hasActiveWorkspace() instead.
*
* @see https://www.drupal.org/node/3071527
*/
const DEFAULT_WORKSPACE = 'live';
/** /**
* Publishes the contents of this workspace to the default (Live) workspace. * Publishes the contents of this workspace to the default (Live) workspace.
*/ */
public function publish(); public function publish();
/**
* Determines whether the workspace is the default one or not.
*
* @return bool
* TRUE if this workspace is the default one (e.g 'Live'), FALSE otherwise.
*
* @deprecated in drupal:8.8.0 and is removed from drupal:9.0.0. Use
* \Drupal\workspaces\WorkspaceManager::hasActiveWorkspace() instead.
*
* @see https://www.drupal.org/node/3071527
*/
public function isDefaultWorkspace();
/** /**
* Gets the workspace creation timestamp. * Gets the workspace creation timestamp.
* *
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment