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

8.0.x
webchick 2013-07-09 09:23:25 -04:00
parent 522c787ef2
commit 04a84d71d7
2 changed files with 3 additions and 3 deletions

View File

@ -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:

View File

@ -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.