Kyiv, Ukraine
Account created on 30 January 2009, almost 17 years ago
#

Merge Requests

More

Recent comments

🇺🇦Ukraine ruslan piskarov Kyiv, Ukraine

If you have enabled the "Group Content Moderation" module, try to disable it and remove the "Moderated group content" view (disabling the module doesn't remove it). This has helped me.

Also review web/modules/contrib/group/group.install.
Both Group 2.3.2 and 3.3.5 have group_update_10305().
But Group 2.3.2 doesn't have hooks from group_update_10300() to group_update_10304().
So, if you ran update.php with Group 2.3.2 and group_update_10305() was completed, after updating to Group v3+ hooks from group_update_10300() to group_update_10304(), newer fired.

I hope it will help.

🇺🇦Ukraine ruslan piskarov Kyiv, Ukraine

Added the example of code for Group v3 as well.

🇺🇦Ukraine ruslan piskarov Kyiv, Ukraine

Created a pull request based on the patch provided by @lionel rousseau.
Works well for me.

🇺🇦Ukraine ruslan piskarov Kyiv, Ukraine

ruslan piskarov changed the visibility of the branch 3553820-vbo-has-changed to hidden.

🇺🇦Ukraine ruslan piskarov Kyiv, Ukraine

ruslan piskarov changed the visibility of the branch 3553820- to hidden.

🇺🇦Ukraine ruslan piskarov Kyiv, Ukraine

ruslan piskarov made their first commit to this issue’s fork.

🇺🇦Ukraine ruslan piskarov Kyiv, Ukraine
🇺🇦Ukraine ruslan piskarov Kyiv, Ukraine
🇺🇦Ukraine ruslan piskarov Kyiv, Ukraine

ruslan piskarov created an issue.

🇺🇦Ukraine ruslan piskarov Kyiv, Ukraine

@baluertl, @laszlo.kovacs, segi,
Could we create a stable version for D11?
This is a great module, but > 2 years without updates.

🇺🇦Ukraine ruslan piskarov Kyiv, Ukraine

@anybody, you can integrate if you prefer.
I think with new form settings, which allow for enabling and implemented disabling features. It was in my @todo list.

🇺🇦Ukraine ruslan piskarov Kyiv, Ukraine

Hi @anybody.

Replicate Actions — What it does (HTML version)

Unpublish replicated entities

  • Trigger: ReplicatorEvents::REPLICATE_ALTER.
  • Applies to publishable content entities that have a status field.
  • Skips:
    • Paragraph entities (paragraph).
    • Non‑reusable Layout Builder custom blocks (block_content that are not reusable).
  • For all translations:
    • Sets status to unpublished.
    • Resets created/changed timestamps to the current time (when supported).
  • Implementation: src/EventSubscriber/ReplicateSetUnpublished.php (service: replicate_actions.replicate_entity_unpublish).

Set the owner of the replicated entity to the current user

  • Trigger: ReplicatorEvents::REPLICATE_ALTER.
  • For each translation, if the entity supports ownership (setOwnerId), sets the owner to the logged‑in user.
  • Implementation: src/EventSubscriber/ReplicateSetAuthor.php (service: replicate_actions.replicate_set_author).

Redirect to the edit form after replication (Replicate UI)

  • Alters the Replicate UI confirm form to redirect to the new entity’s edit form after submission.
  • Only redirects if the entity has an edit-form link template.
  • Implementation: src/Form/ReplicateFormAlter.php used via hook_form_alter() in replicate_actions.module (service: replicate_actions.replicate_form_alter).

Copy Group memberships for nodes (if Group module is enabled)

  • Stores the original node ID during REPLICATE_ALTER, then after save (AFTER_SAVE) adds the cloned node to the same Groups as the original.
  • Only runs for nodes and only when the group module is installed.
  • Uses group content plugin ID group_node:{bundle} when adding the relationship.
  • Implementation: src/EventSubscriber/ReplicateNodeToGroup.php (service: replicate_actions.replicate_node_to_group).

Constraints and exclusions

  • Paragraph entities are not auto‑unpublished.
  • Non‑reusable custom blocks from Layout Builder are not auto‑unpublished.
  • Group copying applies only to nodes and requires the Group module.
  • Owner change runs only if the entity supports ownership (setOwnerId).

Files of interest

  • replicate_actions.info.yml — Declares the module; depends on replicate and replicate_ui.
  • replicate_actions.services.yml — Registers the form alter and event subscribers.
  • replicate_actions.module — Contains hook_help() and hook_form_alter().
  • Implementations under src/:
    • EventSubscriber/ReplicateSetUnpublished.php
    • EventSubscriber/ReplicateSetAuthor.php
    • EventSubscriber/ReplicateNodeToGroup.php
    • Form/ReplicateFormAlter.php

Note

  • There is an additional class src/EventSubscriber/ReplicateSetEntityEdit.php (unpublish + redirect via response), but it is not registered as a service in this codebase; the active redirect is provided by the form‑alter approach above.
🇺🇦Ukraine ruslan piskarov Kyiv, Ukraine

@anybody,

Unpublish replicated entities

  • Trigger: ReplicatorEvents::REPLICATE_ALTER.
  • Applies to publishable content entities that have a status field.
  • Skips:
    • Paragraph entities (paragraph).
    • Non‑reusable Layout Builder custom blocks (block_content that are not reusable).
  • For all translations:
    • Sets status to unpublished.
    • Resets created/changed timestamps to the current time (when supported).
  • Implementation: src/EventSubscriber/ReplicateSetUnpublished.php (service: replicate_actions.replicate_entity_unpublish).

Set the owner of the replicated entity to the current user

  • Trigger: ReplicatorEvents::REPLICATE_ALTER.
  • For each translation, if the entity supports ownership (setOwnerId), sets the owner to the logged‑in user.
  • Implementation: src/EventSubscriber/ReplicateSetAuthor.php (service: replicate_actions.replicate_set_author).

Redirect to the edit form after replication (Replicate UI)

  • Alters the Replicate UI confirm form to redirect to the new entity’s edit form after submission.
  • Only redirects if the entity has an edit-form link template.
  • Implementation: src/Form/ReplicateFormAlter.php used via hook_form_alter() in replicate_actions.module (service: replicate_actions.replicate_form_alter).

Copy Group memberships for nodes (if Group module is enabled)

  • Stores the original node ID during REPLICATE_ALTER, then after save (AFTER_SAVE) adds the cloned node to the same Groups as the original.
  • Only runs for nodes and only when the group module is installed.
  • Uses group content plugin ID group_node:{bundle} when adding the relationship.
  • Implementation: src/EventSubscriber/ReplicateNodeToGroup.php (service: replicate_actions.replicate_node_to_group).

Constraints and exclusions

  • Paragraph entities are not auto‑unpublished.
  • Non‑reusable custom blocks from Layout Builder are not auto‑unpublished.
  • Group copying applies only to nodes and requires the Group module.
  • Owner change runs only if the entity supports ownership (setOwnerId).

Files of interest

  • replicate_actions.info.yml — Declares the module; depends on replicate and replicate_ui.
  • replicate_actions.services.yml — Registers the form alter and event subscribers.
  • replicate_actions.module — Contains hook_help() and hook_form_alter().
  • Implementations under src/:
    • EventSubscriber/ReplicateSetUnpublished.php
    • EventSubscriber/ReplicateSetAuthor.php
    • EventSubscriber/ReplicateNodeToGroup.php
    • Form/ReplicateFormAlter.php

Note

  • There is an additional class src/EventSubscriber/ReplicateSetEntityEdit.php (unpublish + redirect via response), but it is not registered as a service in this codebase; the active redirect is provided by the form‑alter approach above.
🇺🇦Ukraine ruslan piskarov Kyiv, Ukraine

Fixed in MR !55.

🇺🇦Ukraine ruslan piskarov Kyiv, Ukraine
🇺🇦Ukraine ruslan piskarov Kyiv, Ukraine

ruslan piskarov created an issue. See original summary .

🇺🇦Ukraine ruslan piskarov Kyiv, Ukraine

ruslan piskarov created an issue.

🇺🇦Ukraine ruslan piskarov Kyiv, Ukraine

ruslan piskarov created an issue.

🇺🇦Ukraine ruslan piskarov Kyiv, Ukraine

The same issue during updating from Group 2.3.2 to 3.3.5.

drush updatedb
[success] No pending updates.

The website encountered an unexpected error. Try again later.
Drupal\Core\Field\FieldException: Attempt to create a field without a field_name. in Drupal\field\Entity\FieldConfig->__construct() (line 124 of core/modules/field/src/Entity/FieldConfig.php).

🇺🇦Ukraine ruslan piskarov Kyiv, Ukraine

Reviewed it on my local project, and I think it is a helpful feature request.

🇺🇦Ukraine ruslan piskarov Kyiv, Ukraine

Attaching patch from merge request 97.

🇺🇦Ukraine ruslan piskarov Kyiv, Ukraine

Thank you @byronveale, @bkosborne and @vinodhini.e.
Merget to master.

🇺🇦Ukraine ruslan piskarov Kyiv, Ukraine

@byronveale, brilliant. I am going to review tomorrow. Thank you.

🇺🇦Ukraine ruslan piskarov Kyiv, Ukraine

@sourav_paul, you should be credited in #15. I didn't know why it didn't. I will have a look when I have time.

🇺🇦Ukraine ruslan piskarov Kyiv, Ukraine

Hey @byronveale.

I think you can use hook_form_alter() in your custom module.
Example:

/**
 * Implements hook_form_alter().
 */
function replicate_actions_form_alter(&$form, FormStateInterface $form_state, $form_id): void {
  if (strpos($form_id, '_replicate_form')) {
    /** @var \Drupal\replicate_actions\Form\ReplicateFormAlter $replicate_form_alter */
    $replicate_form_alter = \Drupal::service('replicate_actions.replicate_form_alter');
    $replicate_form_alter->alterForm($form, $form_state);
  }
}

Or implement your own EventSubscriber:
class ReplicateChangeAutor implements ReplicateSetEntityEdit.

However, if you can create a patch, I will add this functionality to the module. I think it is a great idea.

🇺🇦Ukraine ruslan piskarov Kyiv, Ukraine

Look https://www.drupal.org/project/views_ical/issues/3435484 📌 Automated Drupal 11 compatibility fixes for views_ical Needs review

🇺🇦Ukraine ruslan piskarov Kyiv, Ukraine

Hi @hitchshock, I am not sure what I did wrong. As I see you and @joelpittet were tagged.
It's strange that you weren't credited.
I'm going to see how I can fix this.

🇺🇦Ukraine ruslan piskarov Kyiv, Ukraine

Thank you @mortona2k and @vinodhini.e.

🇺🇦Ukraine ruslan piskarov Kyiv, Ukraine

ruslan piskarov made their first commit to this issue’s fork.

🇺🇦Ukraine ruslan piskarov Kyiv, Ukraine

Thank you, @berliner. Merged.

🇺🇦Ukraine ruslan piskarov Kyiv, Ukraine

Thank you @goodboy for your reply. You are right.
Created another issue https://www.drupal.org/project/autoban/issues/3527487 Is is possible to remove the Database Logging dependence? Active .

🇺🇦Ukraine ruslan piskarov Kyiv, Ukraine

ruslan piskarov made their first commit to this issue’s fork.

🇺🇦Ukraine ruslan piskarov Kyiv, Ukraine

The patch 32 can be applied to Version 3.1.0, but in DEV it was fixed in another way.
You can have a look Database Indexes was never created because incorrect key in hook_schema 🐛 Database Indexes was never created because incorrect key in hook_schema Fixed .
Leaving this task for reference. Decided do not close this task for now.

🇺🇦Ukraine ruslan piskarov Kyiv, Ukraine

ruslan piskarov made their first commit to this issue’s fork.

🇺🇦Ukraine ruslan piskarov Kyiv, Ukraine

We definitely should update it. Subscribing.

🇺🇦Ukraine ruslan piskarov Kyiv, Ukraine

Could the author of the module create a new release for Drupal 11? Thanks.

🇺🇦Ukraine ruslan piskarov Kyiv, Ukraine

Looks good too. We need a D11 release as soon as possible. Could the author of the module create the 3.0.0 release?

🇺🇦Ukraine ruslan piskarov Kyiv, Ukraine

Looks good too. We need a D11 release as soon as possible. Could the author of the module create a new release?

🇺🇦Ukraine ruslan piskarov Kyiv, Ukraine

Looks good for me.
The community are need a D11 release as soon as possible. Could the author of the module create a new release?

🇺🇦Ukraine ruslan piskarov Kyiv, Ukraine

We need a D11 release as soon as possible. Could the author of the module create a new release?

🇺🇦Ukraine ruslan piskarov Kyiv, Ukraine

+ describing. We need a release for Drupal 11 as soon as possible.

🇺🇦Ukraine ruslan piskarov Kyiv, Ukraine

We need review and create a new release for Drupal 11 ASAP. Thanks. As I see the version 3.0.0 supports D10 only.
Why this task was marked as fixed?
Could you create a new release from https://www.drupal.org/project/fontawesome_menu_icons/releases/3.x-dev ?

🇺🇦Ukraine ruslan piskarov Kyiv, Ukraine

We need review and create a new release for Drupal 11 ASAP. Thanks.

🇺🇦Ukraine ruslan piskarov Kyiv, Ukraine

We need review and create a new release for Drupal 11 ASAP. Thanks.

🇺🇦Ukraine ruslan piskarov Kyiv, Ukraine

Added 'datetime' field type.

🇺🇦Ukraine ruslan piskarov Kyiv, Ukraine

@mark_fullmer, you are right. I didn't see #3317769 before. Thank you very much for the quick response, and have a tremendous day.

🇺🇦Ukraine ruslan piskarov Kyiv, Ukraine

Thank you, @mark_fullmer, for your reply.
I am looking again.

A fresh D10 site enabled the Linkit module v 7.0.0-alpha1 and media macher.
Create two media 1.jpg and 2.png.
In CKeditor
Create a node with "Text Link" text and two images (one image inserted as media, one uploaded as file).
Link all elements to "2.png" media.

A source code will be

<p>
    <a href="/media/4" data-entity-type="media" data-entity-uuid="2142ef3f-60e0-4115-80ce-8d460aa5406a" data-entity-substitution="media">Text Link</a>
</p>
<a href="/media/4"><drupal-media data-entity-type="media" data-entity-uuid="c390e8a9-0b66-4c44-8bd3-dd79b95d4c65">&nbsp;</drupal-media></a>
<a href="/media/4"><img src="/sites/default/files/inline-images/3.jpg" data-entity-uuid="3d311f2c-0dad-4ef6-a1ec-949d0c069523" data-entity-type="file" width="1800" height="943"></a>

Rendered HTML will be

<p>
  <a href="/sites/default/files/2024-11/2.pdf" 
     data-entity-type="media"  
     data-entity-uuid="2142ef3f-60e0-4115-80ce-8d460aa5406a" 
     data-entity-substitution="media" title="2.pdf">Text Link</a>
</p>
<a href="/media/4">
  <div class="media media--type-image media--view-mode-default">
    <div class="field field--name-field-media-image field--type-image field--label-visually_hidden">
      <div class="field__label visually-hidden">Image</div>
      <div class="field__item">
        <img loading="lazy" src="/sites/default/files/styles/large/public/2024-11/1.jpg.webp?itok=5BbDYn1H"
                                    width="480" height="251" alt="test">
      </div>
    </div>
  </div>
</a>
<a href="/media/4">
  <img data-entity-uuid="3d311f2c-0dad-4ef6-a1ec-949d0c069523" 
       data-entity-type="file"
       src="/sites/default/files/inline-images/3.jpg" width="1800" height="943"
                            loading="lazy">
</a>

So, it works nicely with texts but has media issues.

🇺🇦Ukraine ruslan piskarov Kyiv, Ukraine

Thank you, @pianomansam. Have a great time.

🇺🇦Ukraine ruslan piskarov Kyiv, Ukraine

I apologize. I meant a new release for Drupal v11.

🇺🇦Ukraine ruslan piskarov Kyiv, Ukraine

Will be great if we will have a release for Drupal 10.3.

🇺🇦Ukraine ruslan piskarov Kyiv, Ukraine

+1 for an official release.
Thanks for working on this!

🇺🇦Ukraine ruslan piskarov Kyiv, Ukraine

Yes, we can do as @flyke proposed at #27.
+1 for an official release.
Thanks for working on this!

🇺🇦Ukraine ruslan piskarov Kyiv, Ukraine

+1 for an official release.
Thanks for working on this!

🇺🇦Ukraine ruslan piskarov Kyiv, Ukraine

+1 for an official Drupal 11 release.
Thanks for working on this!

🇺🇦Ukraine ruslan piskarov Kyiv, Ukraine

+1 for an official release.
Thanks for working on this!

🇺🇦Ukraine ruslan piskarov Kyiv, Ukraine

Reviewed MR14 . Looks good for me.
+1 for an official release.
Thanks for working on this!

🇺🇦Ukraine ruslan piskarov Kyiv, Ukraine

+1 for an official release. Thanks for working on this!

🇺🇦Ukraine ruslan piskarov Kyiv, Ukraine

Reviewed MR12. Looks good for me.
+1 for an official release.
Thanks for working on this!

🇺🇦Ukraine ruslan piskarov Kyiv, Ukraine

Reviewed. I believe we can have a new version for Drupal 11 as soon as possible. Thank you.

Production build 0.71.5 2024