diff --git a/src/SerializableTempstore.php b/src/SerializableTempstore.php index 3eed41c..65567ed 100644 --- a/src/SerializableTempstore.php +++ b/src/SerializableTempstore.php @@ -5,6 +5,9 @@ use Drupal\Core\DependencyInjection\DependencySerializationTrait; use Drupal\user\SharedTempStore; +/** + * An extension of the SharedTempStore system for serialized data. + */ class SerializableTempstore extends SharedTempStore { use DependencySerializationTrait; } diff --git a/src/SerializableTempstoreFactory.php b/src/SerializableTempstoreFactory.php index 6a48b2f..b06ffb6 100644 --- a/src/SerializableTempstoreFactory.php +++ b/src/SerializableTempstoreFactory.php @@ -4,14 +4,17 @@ use Drupal\user\SharedTempStoreFactory; +/** + * A factory for creating SerializableTempstore objects. + */ class SerializableTempstoreFactory extends SharedTempStoreFactory { /** * {@inheritdoc} */ function get($collection, $owner = NULL) { - // Use the currently authenticated user ID or the active user ID unless - // the owner is overridden. + // Use the currently authenticated user ID or the active user ID unless the + // owner is overridden. if (!isset($owner)) { $owner = \Drupal::currentUser()->id() ?: session_id(); }