From 04a84d71d700215d24f9c8a5dc1c7a336b1a41d3 Mon Sep 17 00:00:00 2001 From: webchick Date: Tue, 9 Jul 2013 09:23:25 -0400 Subject: [PATCH] Issue #2031385 by Wim Leers: Fixed Editor's in-place editing AJAX endpoint broken. --- core/modules/editor/editor.routing.yml | 2 +- core/modules/editor/lib/Drupal/editor/EditorController.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/core/modules/editor/editor.routing.yml b/core/modules/editor/editor.routing.yml index f4ae4963e5f..26aa16c3b42 100644 --- a/core/modules/editor/editor.routing.yml +++ b/core/modules/editor/editor.routing.yml @@ -1,5 +1,5 @@ editor_field_untransformed_text: - pattern: '/editor/{entity_type}/{entity}/{field_name}/{langcode}/{view_mode}' + pattern: '/editor/{entity_type}/{entity}/{field_name}/{langcode}/{view_mode_id}' defaults: _controller: '\Drupal\editor\EditorController::getUntransformedText' requirements: diff --git a/core/modules/editor/lib/Drupal/editor/EditorController.php b/core/modules/editor/lib/Drupal/editor/EditorController.php index 6be24b699cb..e53a4c254c3 100644 --- a/core/modules/editor/lib/Drupal/editor/EditorController.php +++ b/core/modules/editor/lib/Drupal/editor/EditorController.php @@ -32,13 +32,13 @@ class EditorController extends ContainerAware { * @param string $langcode * The name of the language for which the processed text field is being * rererendered. - * @param string $view_mode + * @param string $view_mode_id * The view mode the processed text field should be rerendered in. * * @return \Drupal\Core\Ajax\AjaxResponse * The Ajax response. */ - public function getUntransformedText(EntityInterface $entity, $field_name, $langcode, $view_mode) { + public function getUntransformedText(EntityInterface $entity, $field_name, $langcode, $view_mode_id) { $response = new AjaxResponse(); // Direct text editing is only supported for single-valued fields.