2.0.x of Duplicate Node Layout & Block

Created on 30 September 2024, about 2 months ago

Duplicate Node Layout & Block is used to duplicate node with all fields.
If the layout builder is enabled for this node, then the layout is also duplicated.
If inside the node layout any custom block is placed, this also duplicates, and this block is linked to the duplicate node, so users can easily edit the duplicate block

Duplicate Node Layout & Block
https://www.drupal.org/project/duplicate_node

Other project already published
1. Group Bulk Operations

📌 Task
Status

Needs review

Component

module

Created by

🇮🇳India jayambhure1 Pune

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

Comments & Activities

  • Issue created by @jayambhure1
  • 🇮🇳India vishal.kadam Mumbai

    Thank you for applying!

    Please read Review process for security advisory coverage: What to expect for more details and Security advisory coverage application checklist to understand what reviewers look for. Tips for ensuring a smooth review gives some hints for a smoother review.

    The important notes are the following.

    • If you have not done it yet, you should run phpcs --standard=Drupal,DrupalPractice on the project, which alone fixes most of what reviewers would report.
    • For the time this application is open, only your commits are allowed.
    • The purpose of this application is giving you a new drupal.org role that allows you to opt projects into security advisory coverage, either projects you already created, or projects you will create. The project status won't be changed by this application and no other user will be able to opt projects into security advisory policy.
    • We only accept an application per user. If you change your mind about the project to use for this application, or it is necessary to use a different project for the application, please update the issue summary with the link to the correct project and the issue title with the project name and the branch to review.

    To the reviewers

    Please read How to review security advisory coverage applications , Application workflow , What to cover in an application review , and Tools to use for reviews .

    The important notes are the following.

    • It is preferable to wait for a Code Review Administrator before commenting on newly created applications. Code Review Administrators will do some preliminary checks that are necessary before any change on the project files is suggested.
    • Reviewers should show the output of a CLI tool only once per application.
    • It may be best to have the applicant fix things before further review.

    For new reviewers, I would also suggest to first read In which way the issue queue for coverage applications is different from other project queues .

  • 🇮🇳India vishal.kadam Mumbai

    1. 2.1.0, 1.0.0 and main are wrong names for a branch. Release branch names always end with the literal .x as described in Release branches .

    main will be a supported branch in future, but for the moment it is better not to use it. It is not wrong, but it is not completely supported on drupal.org.

    2. Fix phpcs issues.

    phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml duplicate_node/
    
    FILE: duplicate_node/README.md
    ------------------------------------------------------------------------
    FOUND 1 ERROR AND 3 WARNINGS AFFECTING 4 LINES
    ------------------------------------------------------------------------
      6 | WARNING | [ ] Line exceeds 80 characters; contains 83 characters
      8 | WARNING | [ ] Line exceeds 80 characters; contains 169 characters
     16 | WARNING | [ ] Line exceeds 80 characters; contains 81 characters
     18 | ERROR   | [x] Expected 1 newline at end of file; 2 found
    ------------------------------------------------------------------------
    PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
    ------------------------------------------------------------------------
    
    FILE: duplicate_node/src/EventSubscriber/AddressEventSubscriber.php
    ------------------------------------------------------------------------
    FOUND 3 ERRORS AND 1 WARNING AFFECTING 4 LINES
    ------------------------------------------------------------------------
     16 | WARNING | Line exceeds 80 characters; contains 84 characters
     34 | ERROR   | Class property $DuplicateNodeFinder should use lowerCamel naming without underscores
     54 | ERROR   | Variable "DuplicateNodeFinder" starts with a capital letter, but only $lowerCamelCase or $snake_case is allowed
     56 | ERROR   | Variable "DuplicateNodeFinder" starts with a capital letter, but only $lowerCamelCase or $snake_case is allowed
    ------------------------------------------------------------------------
    
    FILE: duplicate_node/README.txt
    ------------------------------------------------------------------------
    FOUND 2 ERRORS AND 2 WARNINGS AFFECTING 2 LINES
    ------------------------------------------------------------------------
     1 | WARNING | [ ] File has mixed line endings; this may cause incorrect results
     1 | WARNING | [ ] File encoding is invalid, expected UTF-8
     1 | ERROR   | [ ] File contains UTF-16 (LE) byte order mark, which may corrupt your application
     2 | ERROR   | [x] Expected 1 newline at end of file; 0 found
    ------------------------------------------------------------------------
    PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
    ------------------------------------------------------------------------

    3. FILE: README.txt

    Remove README.txt since README.md is already present.

    4. FILE: README.md

    README.md file should follow the content and formatting described in README.md template .

    5. FILE: duplicate_node.module

    /**
     * @file
     * Contains duplicate_node.module.
     */

    The usual description for a .module file is Hook implementations for the [module name] module. where [module name] is the module name given in the .info.yml file.

    6. FILE: src/DuplicateNodeFinder.php

      /**
       * DuplicateNodeFinder constructor.
       *
       * @param \Symfony\Component\HttpFoundation\RequestStack $requestStack
       *   Request stack.
       * @param \Drupal\Core\Path\AliasManager $aliasManager
       *   Alias manager.
       * @param \Drupal\Core\Entity\EntityTypeManagerInterface $entityTypeManager
       *   The entity type manager.
       */
      public function __construct(RequestStack $requestStack, AliasManager $aliasManager, EntityTypeManagerInterface $entityTypeManager) {

    FILE: src/Entity/DuplicateNodeEntityFormBuilder.php

      /**
       * DuplicateNodeEntityFormBuilder constructor.
       *
       * @param \Drupal\Core\Form\FormBuilderInterface $formBuilder
       *   The form builder.
       * @param \Drupal\Core\Entity\EntityTypeBundleInfoInterface $entityTypeBundleInfo
       *   The entity type bundle info provider.
       * @param \Drupal\Core\Config\ConfigFactoryInterface $configFactory
       *   The configuration factory.
       * @param \Drupal\Core\Extension\ModuleHandlerInterface $moduleHandler
       *   The module handler.
       * @param \Drupal\Core\Entity\EntityTypeManagerInterface $entityTypeManager
       *   The entity type manager.
       * @param \Drupal\Core\Session\AccountInterface $currentUser
       *   Current user.
       * @param \Drupal\Core\TempStore\PrivateTempStoreFactory $privateTempStoreFactory
       *   Private temp store factory.
       * @param \Drupal\Core\StringTranslation\TranslationInterface $stringTranslation
       *   The string translation service.
       */
      public function __construct(FormBuilderInterface $formBuilder, EntityTypeBundleInfoInterface $entityTypeBundleInfo, ConfigFactoryInterface $configFactory, ModuleHandlerInterface $moduleHandler, EntityTypeManagerInterface $entityTypeManager, AccountInterface $currentUser, PrivateTempStoreFactory $privateTempStoreFactory, TranslationInterface $stringTranslation) {

    FILE: src/EventSubscriber/AddressEventSubscriber.php

      /**
       * AddressEventSubscriber constructor.
       *
       * @param \Drupal\Core\TempStore\PrivateTempStoreFactory $privateTempStoreFactory
       *   Private temp store factory.
       * @param \Drupal\duplicate_node\DuplicateNodeFinder $DuplicateNodeFinder
       *   Duplicate Node Node Finder.
       */
      public function __construct(PrivateTempStoreFactory $privateTempStoreFactory, DuplicateNodeFinder $DuplicateNodeFinder) {

    FILE: src/Form/DuplicateNodeEntitySettingsForm.php

      /**
       * DuplicateNodeEntitySettingsForm constructor.
       *
       * @param \Drupal\Core\Config\ConfigFactoryInterface $configFactory
       *   The config factory.
       * @param \Drupal\Core\Entity\EntityFieldManagerInterface $entityFieldManager
       *   The entity field manager service.
       * @param \Drupal\Core\Entity\EntityTypeBundleInfoInterface $entityTypeBundleInfo
       *   The entity type bundle info provider.
       */
      public function __construct(ConfigFactoryInterface $configFactory, EntityFieldManagerInterface $entityFieldManager, EntityTypeBundleInfoInterface $entityTypeBundleInfo) {

    The documentation comment for constructors is not mandatory anymore, If it is given, the description must be Constructs a new [class name] object. where [class name] includes the class namespace.

  • 🇮🇳India rushiraval

    I am changing priority as per Issue priorities .

Production build 0.71.5 2024