Update core 8.3.0
This commit is contained in:
parent
da7a7918f8
commit
cd7a898e66
6144 changed files with 132297 additions and 87747 deletions
|
@ -70,11 +70,11 @@ function hook_quickedit_editor_alter(&$editors) {
|
|||
* @see \Drupal\Core\Field\FieldItemListInterface::view()
|
||||
*/
|
||||
function hook_quickedit_render_field(Drupal\Core\Entity\EntityInterface $entity, $field_name, $view_mode_id, $langcode) {
|
||||
return array(
|
||||
return [
|
||||
'#prefix' => '<div class="example-markup">',
|
||||
'field' => $entity->getTranslation($langcode)->get($field_name)->view($view_mode_id),
|
||||
'#suffix' => '</div>',
|
||||
);
|
||||
];
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Reference in a new issue