From 3a44948c9b60524fe0cbd25138fc2a992c5da854 Mon Sep 17 00:00:00 2001 From: Kristen Pol Date: Tue, 27 Feb 2024 20:31:19 -0800 Subject: [PATCH] Fixed rest of php 8.2 dynamic property deprecations. --- .../src/Form/QuantSearchPageForm.php | 7 +++++++ .../src/EventSubscriber/CollectionSubscriber.php | 2 ++ src/EventSubscriber/NodeInsertSubscriber.php | 7 +++++++ src/Plugin/QueueItem/FileItem.php | 16 +++++++++++++++- src/Plugin/QueueItem/NodeItem.php | 12 ++++++++++-- 5 files changed, 41 insertions(+), 3 deletions(-) diff --git a/modules/quant_search/src/Form/QuantSearchPageForm.php b/modules/quant_search/src/Form/QuantSearchPageForm.php index f4dc1ce7..35c2ab6c 100644 --- a/modules/quant_search/src/Form/QuantSearchPageForm.php +++ b/modules/quant_search/src/Form/QuantSearchPageForm.php @@ -16,6 +16,13 @@ */ class QuantSearchPageForm extends EntityForm { + /** + * The entity type manager. + * + * @var Drupal\Core\Entity\EntityTypeManagerInterface + */ + protected $entityTypeManager; + /** * Constructs a QuantSearchPageForm object. * diff --git a/modules/quant_sitemap/src/EventSubscriber/CollectionSubscriber.php b/modules/quant_sitemap/src/EventSubscriber/CollectionSubscriber.php index 53404690..a0aa8c9f 100644 --- a/modules/quant_sitemap/src/EventSubscriber/CollectionSubscriber.php +++ b/modules/quant_sitemap/src/EventSubscriber/CollectionSubscriber.php @@ -22,6 +22,8 @@ class CollectionSubscriber implements EventSubscriberInterface { /** * The entity type manager. * + * @todo Remove this? + * * @var Drupal\Core\Entity\EntityTypeManager */ protected $entityTypeManager; diff --git a/src/EventSubscriber/NodeInsertSubscriber.php b/src/EventSubscriber/NodeInsertSubscriber.php index 5d5a2904..ddea1c2e 100644 --- a/src/EventSubscriber/NodeInsertSubscriber.php +++ b/src/EventSubscriber/NodeInsertSubscriber.php @@ -12,6 +12,13 @@ */ class NodeInsertSubscriber implements EventSubscriberInterface { + /** + * The metadata manager. + * + * @var Drupal\quant\Plugin\QuantMetadataManager + */ + protected $metadataManager; + /** * Constructs a node insertion event object. * diff --git a/src/Plugin/QueueItem/FileItem.php b/src/Plugin/QueueItem/FileItem.php index 08d0ca81..6b092b3a 100644 --- a/src/Plugin/QueueItem/FileItem.php +++ b/src/Plugin/QueueItem/FileItem.php @@ -12,12 +12,26 @@ class FileItem implements QuantQueueItemInterface { /** - * A filepath. + * The file path. * * @var string */ private $file; + /** + * The file URL. + * + * @var string + */ + private $url; + + /** + * The file full path. + * + * @var string + */ + private $fullPath; + /** * {@inheritdoc} */ diff --git a/src/Plugin/QueueItem/NodeItem.php b/src/Plugin/QueueItem/NodeItem.php index c56c6b4a..46c447a5 100644 --- a/src/Plugin/QueueItem/NodeItem.php +++ b/src/Plugin/QueueItem/NodeItem.php @@ -12,12 +12,19 @@ class NodeItem implements QuantQueueItemInterface { /** - * A Drupal entity. + * The entity id. * * @var int */ private $id; + /** + * The revision id. + * + * @var int + */ + private $vid; + /** * The language code for the entity. * @@ -25,10 +32,11 @@ class NodeItem implements QuantQueueItemInterface { */ private $filter; - /** * Include entity revisions. * + * @todo Remove this? + * * @var bool */ private $revisions;