I am having the exact same issue, and I do have the
"composer/installers": "^2.0",
in my composer.json
Has anyone solved this? I am using ddev, but neither using ddev drush
nor ddev vendor/bin/drush
nor ddev ssh
-> vendor/bin/drush
it does work
Hi,
I added a few modifications to patch revisioning-2350939-96-generic-revision-ui.patch which was the one that allowed me to have all this working.
With my corrections I got it working ok, it took a lot of work to find out what was happening, especially without knowing the core in depth.
Anyways, feel free to test. I applied it to Drupal 8.9.12
cd siteRoot
git apply 0001-Patching-revisioning-for-all-entities-mixing-differe.patch
NOTE: this is to be used with Block Content Revision UI →
Good luck!
Just as an addition, the Revision History page and revision form page aren't being displayed as Admin paths
\core\lib\Drupal\Core\Entity\Routing\RevisionHtmlRouteProvider.php
in the different functions like
- getVersionHistoryRoute
- getRevisionViewRoute
- getRevisionRevertRoute
you can add the following line:
->setOption('_admin_route', TRUE)
to get all those paths as Admin paths.
To complement #96 ✨ Implement a generic revision UI Fixed (and, by the way, thank you so much for that 8.9.x patch → , it was very useful), I needed to add the following:
\core\lib\Drupal\Core\Entity\Form\RevisionRevertForm.php
Add at line 12:
use Drupal\Core\Entity\EntityManagerInterface;
Add at line 301:
public function setEntityManager(EntityManagerInterface $entity_manager) {
$this->entityManager = $entity_manager;
return $this;
}
After these additions I was able to use the Block Content Revision UI →
Thank you again.