Deprecated function theme on D8

Im trying to replace some php code in .php.plp file to change it to a html.twig file, i dont know if im able to replace all the logic with just twig when i have php code deprecated or drupal functions wich one i cant use inside twig tags, and of course i can't use php and twig on same file (at least with my knowledge).The php.plp code is 

Reset all links in a menu

I am working with 8.4.x version of Drupal, and would like to know if there is a way to reset all links in a menu. In my case I would like to reset all links in admin menu.

What happened is that after creating new link, most of other links in menu were disabled, overrided by for some reason I don't know.

And the "Save" button at the bottom of page is not working, checkboxes to enable links are not considered.

Only way to do it is to reset link by link, there is no bulk operation to do it unfortunately.

Is there another way ?

Thank you in advance !

Modifying User Record Template

I’m trying to avoid duplication if it’s not necessary…

Is it possible to modify the columns/fields in the User/People table/records?

Right now, I’m creating a new content type called “Members”, but this is hopefully not necessary. Each content item/entry in the “Members” table will also be an authenticated user on the system - no user access, no “Member” record.

Error accessing "People"

Hi all,

I am brand new to the world of Drupal so please excuse me if I use the wrong terminology or ask a stupid question.

I'm taking over a site that was built for me by a third party.

They gave me a User account log in.

I logged in and attempted to go to "People" to edit the account they had been using. But this error resulted "The website encountered an unexpected error. Please try again later."

My first thought was to add me again as an Administrator, which I did successfully, but when trying to go to "People" again the same error arose.

Error installing a certificate

I tried installing a certificate and it gives me this error:

PluginError: Unable to find a virtual host listening on port 80 which is currently needed for Certbot to prove to the CA that you control your domain. Please add a virtual host for port 80.
 

I even tried with certbot -i apache -a webroot -w /var/www/html/drupal -d example.com

It gives me the same error. 

DO I have to change anything in settings.php in order for it to understand the port 80 and the installation to complete. 

Thanks in advance.

8: Module block with API request.

Hi, 

I've been checking the examples for creating a custom module in Drupal 8 and found the code for the custom page module. 

I was wondering if there is something similar but for modules that render custom blocks.  

What I want to create is a custom module  that makes a GET request to an API and prints the results in a custom block. 

Any pointers will be appreciated. 

Pages

Subscribe with RSS Subscribe to RSS - Drupal 8.x