Mercurial > hg > isophonics-drupal-site
comparison core/modules/comment/src/Form/CommentAdminOverview.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 | 129ea1e6d783 |
comparison
equal
deleted
inserted
replaced
13:5fb285c0d0e3 | 14:1fec387a4317 |
---|---|
7 use Drupal\Core\Datetime\DateFormatterInterface; | 7 use Drupal\Core\Datetime\DateFormatterInterface; |
8 use Drupal\Core\Entity\EntityTypeManagerInterface; | 8 use Drupal\Core\Entity\EntityTypeManagerInterface; |
9 use Drupal\Core\Extension\ModuleHandlerInterface; | 9 use Drupal\Core\Extension\ModuleHandlerInterface; |
10 use Drupal\Core\Form\FormBase; | 10 use Drupal\Core\Form\FormBase; |
11 use Drupal\Core\Form\FormStateInterface; | 11 use Drupal\Core\Form\FormStateInterface; |
12 use Drupal\user\PrivateTempStoreFactory; | 12 use Drupal\Core\TempStore\PrivateTempStoreFactory; |
13 use Symfony\Component\DependencyInjection\ContainerInterface; | 13 use Symfony\Component\DependencyInjection\ContainerInterface; |
14 | 14 |
15 /** | 15 /** |
16 * Provides the comments overview administration form. | 16 * Provides the comments overview administration form. |
17 * | |
18 * @internal | |
17 */ | 19 */ |
18 class CommentAdminOverview extends FormBase { | 20 class CommentAdminOverview extends FormBase { |
19 | 21 |
20 /** | 22 /** |
21 * The entity type manager. | 23 * The entity type manager. |
46 protected $moduleHandler; | 48 protected $moduleHandler; |
47 | 49 |
48 /** | 50 /** |
49 * The tempstore factory. | 51 * The tempstore factory. |
50 * | 52 * |
51 * @var \Drupal\user\PrivateTempStoreFactory | 53 * @var \Drupal\Core\TempStore\PrivateTempStoreFactory |
52 */ | 54 */ |
53 protected $tempStoreFactory; | 55 protected $tempStoreFactory; |
54 | 56 |
55 /** | 57 /** |
56 * Creates a CommentAdminOverview form. | 58 * Creates a CommentAdminOverview form. |
59 * The entity manager service. | 61 * The entity manager service. |
60 * @param \Drupal\Core\Datetime\DateFormatterInterface $date_formatter | 62 * @param \Drupal\Core\Datetime\DateFormatterInterface $date_formatter |
61 * The date formatter service. | 63 * The date formatter service. |
62 * @param \Drupal\Core\Extension\ModuleHandlerInterface $module_handler | 64 * @param \Drupal\Core\Extension\ModuleHandlerInterface $module_handler |
63 * The module handler. | 65 * The module handler. |
64 * @param \Drupal\user\PrivateTempStoreFactory $temp_store_factory | 66 * @param \Drupal\Core\TempStore\PrivateTempStoreFactory $temp_store_factory |
65 * The tempstore factory. | 67 * The tempstore factory. |
66 */ | 68 */ |
67 public function __construct(EntityTypeManagerInterface $entity_type_manager, DateFormatterInterface $date_formatter, ModuleHandlerInterface $module_handler, PrivateTempStoreFactory $temp_store_factory) { | 69 public function __construct(EntityTypeManagerInterface $entity_type_manager, DateFormatterInterface $date_formatter, ModuleHandlerInterface $module_handler, PrivateTempStoreFactory $temp_store_factory) { |
68 $this->entityTypeManager = $entity_type_manager; | 70 $this->entityTypeManager = $entity_type_manager; |
69 $this->commentStorage = $entity_type_manager->getStorage('comment'); | 71 $this->commentStorage = $entity_type_manager->getStorage('comment'); |
78 public static function create(ContainerInterface $container) { | 80 public static function create(ContainerInterface $container) { |
79 return new static( | 81 return new static( |
80 $container->get('entity_type.manager'), | 82 $container->get('entity_type.manager'), |
81 $container->get('date.formatter'), | 83 $container->get('date.formatter'), |
82 $container->get('module_handler'), | 84 $container->get('module_handler'), |
83 $container->get('user.private_tempstore') | 85 $container->get('tempstore.private') |
84 ); | 86 ); |
85 } | 87 } |
86 | 88 |
87 /** | 89 /** |
88 * {@inheritdoc} | 90 * {@inheritdoc} |