Skip to content
Snippets Groups Projects

Issue #3457750: Incompatible declaration of getEntityTrackingWorkspaceIds(Drupal\Core\Entity\RevisionableInterface $entity)

Closed Issue #3457750: Incompatible declaration of getEntityTrackingWorkspaceIds(Drupal\Core\Entity\RevisionableInterface $entity)
1 unresolved thread
1 unresolved thread

Closes #3457750

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
197 197 /**
198 198 * {@inheritdoc}
199 199 */
200 public function getEntityTrackingWorkspaceIds(RevisionableInterface $entity) {
200 public function getEntityTrackingWorkspaceIds(RevisionableInterface $entity, bool $latest_revision = FALSE) {
  • after this change we get another error:

    Fatal error: Class Drupal\wse\WseWorkspaceAssociation contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (Drupal\workspaces\WorkspaceAssociationInterface::getTrackedEntitiesForListing) in /var/www/html/docroot/modules/contrib/wse/src/WseWorkspaceAssociation.php on line 19
  • fixed that, and now more errors:

    Error: Undefined constant Drupal\workspaces\WorkspaceInformationInterface::SUPPORTED in Drupal\wse\Core\EntityTypeInfo->entityTypeBuild() (line 52 of /var/www/html/docroot/modules/contrib/wse/src/Core/EntityTypeInfo.php).
    Fatal error: Uncaught TypeError: Cannot assign Drupal\workspaces\WorkspaceInformation to property Drupal\wse\Core\WorkspaceManager::$workspaceInfo of type Drupal\wse\Core\WorkspaceInformationInterface in /var/www/html/docroot/modules/contrib/wse/src/Core/WorkspaceManager.php:139
    Edited by Malcolm Young
  • Please register or sign in to reply
  • Malcolm Young added 1 commit

    added 1 commit

    • f839f707 - implement getTrackedEntitiesForListing

    Compare with previous version

  • Malcolm Young added 1 commit

    added 1 commit

    • 8298438b - use wse WorkspaceInformationInterface

    Compare with previous version

  • Please register or sign in to reply
    Loading