Issue #3388540 by mably: Orphan Purger not triggered when deleting revisions
3 open threads
Closes #3388540
Merge request reports
Activity
added 1 commit
- src/Hook/EntityReferenceRevisionsHooks.php 0 → 100644
3 namespace Drupal\entity_reference_revisions\Hook; 4 5 use Drupal\Core\Entity\EntityInterface; 6 use Drupal\Core\Entity\EntityTypeManagerInterface; 7 use Drupal\Core\Entity\FieldableEntityInterface; 8 use Drupal\Core\Field\FieldTypePluginManagerInterface; 9 use Drupal\Core\Hook\Attribute\Hook; 10 use Drupal\Core\Queue\QueueFactory; 11 use Drupal\entity_reference_revisions\Plugin\Field\FieldType\EntityReferenceRevisionsItem; 12 13 /** 14 * Hooks service for the entity_reference_revisions module. 15 */ 16 class EntityReferenceRevisionsHooks { 17 18 public function __construct( changed this line in version 3 of the diff
- src/Hook/EntityReferenceRevisionsHooks.php 0 → 100644
1 <?php 2 3 namespace Drupal\entity_reference_revisions\Hook; 4 5 use Drupal\Core\Entity\EntityInterface; 6 use Drupal\Core\Entity\EntityTypeManagerInterface; 7 use Drupal\Core\Entity\FieldableEntityInterface; 8 use Drupal\Core\Field\FieldTypePluginManagerInterface; 9 use Drupal\Core\Hook\Attribute\Hook; 10 use Drupal\Core\Queue\QueueFactory; 11 use Drupal\entity_reference_revisions\Plugin\Field\FieldType\EntityReferenceRevisionsItem; 12 13 /** 14 * Hooks service for the entity_reference_revisions module. 15 */ 16 class EntityReferenceRevisionsHooks { Core unfortunately didn't go with that in the initial bulk conversion as automating that was too complicated, but I'd prefer to split hooks by topic (which translates quite well to first-word-of-the-hook in most cases) and not just put them all into a single class.
That just means to name this class just EntityHooks.
changed this line in version 3 of the diff
@berdir pushed an update.
added 1 commit
- src/Hook/EntityHooks.php 0 → 100644
1 <?php 2 3 namespace Drupal\entity_reference_revisions\Hook; 4 5 use Drupal\Core\Entity\EntityInterface; 6 use Drupal\Core\Entity\EntityTypeManagerInterface; 7 use Drupal\Core\Entity\FieldableEntityInterface; 8 use Drupal\Core\Field\FieldTypePluginManagerInterface; 9 use Drupal\Core\Hook\Attribute\Hook; 10 use Drupal\Core\Queue\QueueFactory; 11 use Drupal\entity_reference_revisions\Plugin\Field\FieldType\EntityReferenceRevisionsItem; 12 13 /** 14 * Entity hooks service for the entity_reference_revisions module. 15 */ 16 class EntityHooks { changed this line in version 4 of the diff
added 1 commit
Please register or sign in to reply