Add config action to copy entity displays

Created on 18 October 2024, 4 months ago

Problem/Motivation

In the parent issue the general entity clone action was created, but unfortunately for entity display the clone process requires changing the mode property, see here https://git.drupalcode.org/project/drupal/-/blob/11.x/core/lib/Drupal/Co... . Method createCopy is called in https://git.drupalcode.org/project/drupal/-/blob/11.x/core/modules/field... when the new entity display is added.

I believe this config action that mimics the behavior from admin UI will be useful.

Proposed resolution

Add new config action.

Release notes snippet

Example for using in recipe:

# Create view display "Search Index" as a copy of "Default" display for all available content types.
core.entity_view_display.node.*.default:
   copyEntityDisplay: search_index
✨ Feature request
Status

Active

Version

10.4 ✨

Component

recipe system

Created by

πŸ‡©πŸ‡ͺGermany a.dmitriiev

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024