function layout_builder_quickedit_render_field in Drupal 10
Same name and namespace in other branches
- 8 core/modules/layout_builder/layout_builder.module \layout_builder_quickedit_render_field()
- 9 core/modules/layout_builder/layout_builder.module \layout_builder_quickedit_render_field()
Implements hook_quickedit_render_field().
File
- core/
modules/ quickedit/ quickedit.module, line 229 - Provides in-place content editing functionality for fields.
Code
function layout_builder_quickedit_render_field(EntityInterface $entity, $field_name, $view_mode_id, $langcode) {
/** @var \Drupal\quickedit\LayoutBuilderIntegration $layout_builder_integration */
$layout_builder_integration = \Drupal::classResolver(LayoutBuilderIntegration::class);
return $layout_builder_integration
->quickEditRenderField($entity, $field_name, $view_mode_id, $langcode);
}