Commit 04a84d71 authored by webchick's avatar webchick
Browse files

Issue #2031385 by Wim Leers: Fixed Editor's in-place editing AJAX endpoint broken.

parent 522c787e
pattern: '/editor/{entity_type}/{entity}/{field_name}/{langcode}/{view_mode}'
pattern: '/editor/{entity_type}/{entity}/{field_name}/{langcode}/{view_mode_id}'
_controller: '\Drupal\editor\EditorController::getUntransformedText'
......@@ -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.
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment