Layout Replicate
================

A Drupal custom module that clones Layout Builder layouts between nodes and/or
translations, including deep-cloning of inline block content entities.

CONTENTS
--------
 - layout_replicate/   Custom module source code

REQUIREMENTS
------------
 - Drupal 10 or 11
 - Layout Builder enabled on the target content type
 - Multilingual modules: language, content_translation
 - block_content translation enabled (for deep-cloning inline blocks)

INSTALLATION
------------
1. Copy the layout_replicate/ folder into web/modules/custom/
2. Enable the module:

   drush en layout_replicate -y
   drush cr

USAGE
-----
Navigate to any Layout Builder-enabled node and go to:

   /node/{NID}/replicate-layout

A "Replicate Layout" tab will also appear on the node page.

The form lets you:
 - Choose the source language to read the layout from
 - Optionally target a different node (leave blank for same node)
 - Choose the target language to write the layout into
 - Deep-clone inline blocks (recommended) to keep them independent

MAINTAINER
----------
Mahdi Al-Wadi
