TransWikia.com
  1. All Categories
  2. Drupal Answers

Drupal Answers : Recent Questions and Answers (Page 15)

Find answers to your questions about Drupal Answers or help others by answering their Drupal Answers questions.

How to programmatically reference entities?

I am trying to reference an entity within my hook, so that every time a new entity is inserted, I create another entity referencing the first entity. I have not...

Asked on 10/26/2021 by sveggen

1 answer

Best Practice: Remove UUID or default_config_hash from Custom Content Type definitions?

When I'm exporting the custom content type definitions using the UI, many of the resulting YML files hold a uuid and default_config_hash, like:uuid: b69d8e54-076c-4a15-a396-19f49369fa68..._core: default_config_hash: 3aSvUp4PtrivflrkaLdNRL1USkZLsS7NdQroSiRX9mA...Now, when I'm...

Asked on 10/26/2021

1 answer

Update user email in custom module : validation API returns "Your current password is missing or incorrect"

Users can update their email and user name in a form (Form API) in a custom module. The reason is it also updates an external service. It works well but...

Asked on 10/26/2021 by Sébastien Gicquel

1 answer

custom action plugin with ConfigurationForm

I am trying to create a custom action with Configuration Form Field . I am able to create Action and it is being displayed on content page ( /admin/content )...

Asked on 10/26/2021

1 answer

taking in account access forbidden items in views total row count

the {{ view.total_rows }} inspired by Get total row count in views-view-fields.html.twig is not accurate when some rows are not accessible to the user. Any idea how can we...

Asked on 10/26/2021 by Matoeil

0 answer

grouped paragraphs by field not filtering to current language

I have a D8.9 multilingual site. I need to group paragraph elements, as well as filter them by page language and Content ID. But my language filter don't seem to...

Asked on 10/26/2021 by turpentyne

1 answer

How to render a node on behalf of another user (as an admin or without accessCheck)

Context : I use the following code to replace a token by a rendered node. The resulted text is sent by email$renderable = $view_builder->view($node, 'token', $langcode);$replacements[$original] = Drupal::service('renderer')->renderPlain($renderable);This is...

Asked on 10/26/2021

1 answer

How do I migrate node entity references?

I would like to migrate node entity references from D7 to D8. In my D7 application, many nodes are related to other with the "entity reference" system. But related nodes...

Asked on 10/26/2021 by Alexandre

0 answer

Form textfield AJAX validation "deletes" injected services to form

I'm trying to create a form that has two services injected (for access to an API) and a textfield with an AJAX callback. Here it is:public function buildForm(array $form,...

Asked on 10/26/2021 by Pedro Tentugal

1 answer

Allowing anonymous users to contact node authors

I want anonymous users to send messages to node authors. Also I want the sent messages to be visible to node authors in their user account. Here is what I...

Asked on 10/26/2021 by aroopk

1 answer

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP