- Issue created by @kevinquillen
Trying to use path based invalidation does not work even though the readme says you can do that:
$purgeInvalidationFactory = \Drupal::service('purge.invalidation.factory');
$purgeQueuers = \Drupal::service('purge.queuers');
$purgeQueue = \Drupal::service('purge.queue');
$queuer = $purgeQueuers->get('myqueuer');
$invalidations = [
$purgeInvalidationFactory->get('path', 'contact'),
];
trying to do so throws the exception:
Drupal\purge\Plugin\Purge\Invalidation\Exception\TypeUnsupportedException: path in Drupal\purge\Plugin\Purge\Invalidation\InvalidationsService->get() (line 84 of modules/contrib/purge/src/Plugin/Purge/Invalidation/InvalidationsService.php).
Active
3.6
Code