Mercurial > hg > cmmr2012-drupal-site
comparison core/modules/editor/src/EditorController.php @ 5:12f9dff5fda9 tip
Update to Drupal core 8.7.1
author | Chris Cannam |
---|---|
date | Thu, 09 May 2019 15:34:47 +0100 |
parents | c75dbcec494b |
children |
comparison
equal
deleted
inserted
replaced
4:a9cd425dd02b | 5:12f9dff5fda9 |
---|---|
68 | 68 |
69 // The original_format parameter will only exist when switching text format. | 69 // The original_format parameter will only exist when switching text format. |
70 $original_format_id = $request->request->get('original_format_id'); | 70 $original_format_id = $request->request->get('original_format_id'); |
71 $original_format = NULL; | 71 $original_format = NULL; |
72 if (isset($original_format_id)) { | 72 if (isset($original_format_id)) { |
73 $original_format = $this->entityManager() | 73 $original_format = $this->entityTypeManager() |
74 ->getStorage('filter_format') | 74 ->getStorage('filter_format') |
75 ->load($original_format_id); | 75 ->load($original_format_id); |
76 } | 76 } |
77 | 77 |
78 return new JsonResponse(editor_filter_xss($value, $filter_format, $original_format)); | 78 return new JsonResponse(editor_filter_xss($value, $filter_format, $original_format)); |