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

Adding link to a menu

Hi,

I am trying to add a link to my Main Navigation menu. The link to my custom page looks like /text/{textid}/download. How can I add such a link to the menu?

Thanks,

Create Media Bundles/Types/Entities programmatically?

Is it possible to create a media type programmatically?
I would like to use the already existing MediaSource "image" and do not use a new MediaSource.
Basically like the UI (/admin/structure/media/add), but programmatically?

Or does anyone know a plugin for Drupal Console that can be used to create Media Bundles/Types/Entities?

Using a literal string in #attributes

I'm using JavaScript from DataTables.net to provide some fancy styling on longer tables full of search results from a module I'm working on. My table definition is as follows:

Drupal 8 module triggering error

I'm writing my first Drupal 8 module and on top of that my OO-fu is very weak. I've created a skeleton module and it works fine. Where I'm running in to problems is trying to make an admin page for settings. I'm using this as my guide: https://befused.com/drupal/drupal8-admin-form-guide. When I clear the cache, I get the following error in the logs "Error: Unsupported operand types in /var/www/html/drupal_2020/core/lib/Drupal/Core/Routing/RouteBuilder.php on line 163".

Drupal 8 webform : Download just the filtered submissions

Hi, I'm using webform module in my drupal site. I want to download just the filtered submissions. I don't want to download all submissions. is there any way to do that ? 

The module does not work until I remove the additional check:

https://www.drupal.org/project/content_parser

When starting the parser module, I get an error.

InvalidArgumentException: sink must not be a boolean in GuzzleHttp\Client->applyOptions() (line 384 of /home/admin/web/testdr.vpoltave.net/public_html/vendor/guzzlehttp/guzzle/src/Client.php).

Pages

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