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

How to handle error using register_shutdown_function()

a(); //how to handle this undefined function call error.

register_shutdown_function('handleFatalPhpError');

function handleFatalPhpError(){
$last_error = error_get_last();
if($last_error['type'] == E_ERROR ){
echo "Can do custom output or logging";
}
}

what to do when multiple contributors created D8 port of the same module?

Hi,

I'm the maintainer of the Dynamic Banner module.
Right now I have two contributors who ported D7 version of the module to D8.
I'm not sure which copy to accept.  Are there any guidelines available?

What would be the most appropriate way to handle this?

Thank you.

URL redirect

hi,

  We put website information (domain url) of an online store in database. On the website, we will display /visit/store.

   When visitor click "/visit/store", system should read url from "online store" Content type and then do a redirect. Any code example to implement this feature?

Thanks.

Custom module and base field

Hi everybody,

I'm a little lost with a custom module from a devellopper who's left our companie. We are a bug with paragraph module, we found a patch for this bug and we must run an entity update for apply it. But we've got this error :

delete

delete

Menu link for my first custom module

Hi,

I am learning how to develop custom modules in Drupal8. I went through two examples where they created the menu links for the modules respectively.

In one example, the my_module.links.menu.yml file contained the beginning line of code as:

my_module.newpage

In the second example, the my_module.links.menu.yml file contained the beginning line as:

my_module.admin

 What is the difference between my_module.newpage and my_module.admin in the .links.menu.yml files?

Thanks,

Pages

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