This forum is for module development and code related questions, not general module support. For general support, use the Post installation forum.

Layout Builder Custom block type menu

I've created a custom block type and stuck it in a module, works fine.

In layout builder when adding this block I have to click Create Custom Block and there it is in the list and that works.

I with to add it to the first screen that pops up when adding blocks.

The following code "almost" works. when taking the inline block at the bottom away I see the Scott category and the block but the link doesn't work because it needs inline block in the url. I put inline block at the bottom again and I don't see the link anywhere.

Not to sure on what namespace to use

Expose the webform fields into jsonapi

Hi,

Is it possible expose the webform fields and attributes into jsonapi

Regards,

VJ

Cache Issue

Hi,

I have created a module with dynamic content and it does display the content correctly. (ie the block code works as expected)

I've added some code to the block configuration in the Structure>Block Layout>MyBlock>PHP section, to determine whether to display the block or not:

Drupal 9 replacement for hook_comment_insert

I have a D7 module where I use hook_comment_insert($comment) to check whether the comment created is published or not:

 if ($comment->status->value == 0) {
  // Do stuff.
}

It looks like this hook is gone in D9. What do I use instead?

Hide revision checkbox but revision must be created

Hello,

I am trying to find solution how to hide check box in "EDIT content" but I need create revision.

My users have to edit content, but I need to know what they did. If I hide "checkBox" where is "create new revision" then no revision was created.

I tried "hide revision module" but if user did not see this "checkbox choice" then new revision was not created.

I tried last drupal version 9.1.5 - no luck. Version 8.2 and older is not working on my machine. I found some topic with this problem but without solved.

Please, could you help me?

BR

Pages

Subscribe with RSS Subscribe to RSS - Module development and code questions