comparison core/modules/node/src/ParamConverter/NodePreviewConverter.php @ 14:1fec387a4317

Update Drupal core to 8.5.2 via Composer
author Chris Cannam
date Mon, 23 Apr 2018 09:46:53 +0100
parents 4c8ae668cc8c
children
comparison
equal deleted inserted replaced
13:5fb285c0d0e3 14:1fec387a4317
1 <?php 1 <?php
2 2
3 namespace Drupal\node\ParamConverter; 3 namespace Drupal\node\ParamConverter;
4 4
5 use Drupal\user\PrivateTempStoreFactory; 5 use Drupal\Core\TempStore\PrivateTempStoreFactory;
6 use Symfony\Component\Routing\Route; 6 use Symfony\Component\Routing\Route;
7 use Drupal\Core\ParamConverter\ParamConverterInterface; 7 use Drupal\Core\ParamConverter\ParamConverterInterface;
8 8
9 /** 9 /**
10 * Provides upcasting for a node entity in preview. 10 * Provides upcasting for a node entity in preview.
12 class NodePreviewConverter implements ParamConverterInterface { 12 class NodePreviewConverter implements ParamConverterInterface {
13 13
14 /** 14 /**
15 * Stores the tempstore factory. 15 * Stores the tempstore factory.
16 * 16 *
17 * @var \Drupal\user\PrivateTempStoreFactory 17 * @var \Drupal\Core\TempStore\PrivateTempStoreFactory
18 */ 18 */
19 protected $tempStoreFactory; 19 protected $tempStoreFactory;
20 20
21 /** 21 /**
22 * Constructs a new NodePreviewConverter. 22 * Constructs a new NodePreviewConverter.
23 * 23 *
24 * @param \Drupal\user\PrivateTempStoreFactory $temp_store_factory 24 * @param \Drupal\Core\TempStore\PrivateTempStoreFactory $temp_store_factory
25 * The factory for the temp store object. 25 * The factory for the temp store object.
26 */ 26 */
27 public function __construct(PrivateTempStoreFactory $temp_store_factory) { 27 public function __construct(PrivateTempStoreFactory $temp_store_factory) {
28 $this->tempStoreFactory = $temp_store_factory; 28 $this->tempStoreFactory = $temp_store_factory;
29 } 29 }