🇬🇧United Kingdom @mikestar5

Account created on 15 March 2012, over 12 years ago
#

Recent comments

🇬🇧United Kingdom mikestar5

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

🇬🇧United Kingdom mikestar5

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!

🇬🇧United Kingdom mikestar5

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.

🇬🇧United Kingdom mikestar5

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.

Production build 0.71.5 2024