I am getting into developing Drupal modules and feel like I am kicking against the wall. After trying to find the answer on my own and failed I am deciding to join the Community and ask. I need some direction on modifying a current contrib module (project/physical). I would like to add override some of the functions in the module and add a couple of new options. I already have looked through the code and know what I need to change and the functions to override. I could just change the code, or copy the module and make my own, but those both seem wrong.
I have been trying all day to get some custom templates to load for pages and forms that I am creating programatically via custom modules.
In several cases, I have a few forms which I am declaring as such in the hook_menu() implementation and drupal_get_form
When dpming out the $variables['theme_suggestions'] variable, one of the listed ones is page__form_name. I attempted to name my page page--form-name.tpl.php but the system didn't find it (even after clearing cache).
I have a content entity called Event and a basic custom module in 8.6.10. One of the entity's fields should only be seen by a few roles, especially in the edit form.
I thought I could create a new view mode for the form, but it's not clear to me how to restrict this view mode to these roles.
I am in a situation that, drupal minimum cache lifetime affects my content updates periodically. if any changes made to a node content, it would only get reflected to anonymous users after reaching the minimum cache lifetime(Thats how it should work).
What i am looking for is, need to clear the cached version of the node which is being updated. I use memcache for caching.
I had gone through the following code, but it won't expire the cached item.