Add custom php function to form

I've setup a drupal site for a client, a non-profit, who also happened to want a "store-style" donations page implemented. The page would basically look like a store with a shopping cart. see page

Taxonomie display

Hi everybody !

I need help : I am working with drupal 8.

I have created Taxonomie like this :

Finances et administrations  (first level )
 - Etats de paie (second level)
 - Rapports financiers

Suivi et capitalisation
 - rapports
 - Fiches / Plaquettes

Programmes
 - Comptes rendus
 - Rapports d'acitivité

Communication / Centre de ressources
 - Plan/Stratégie de communication
 - Fond documentaire

Get menu title of grandparent based on child

I have menu tree like below format, While grandchild node updates i need to get Parent menu title. Any one have idea about how to get this done?

Parent Menu
 |_ Menu child
        |_ Menu grandchild

Spam in comments

I get many many comments with some nice words about my site, followed by a URL to their spammy site.

I have honeypot, captcha, and httpbl installed, but they seem to do nothing. Is there a way to prevent a url from being entered inside a comment?

Fix "Call to undefined function drupal_add_css()" error at bottom of pages?

Hello folks, I recently undertook a project to convert a drupal 7 website to drupal 8. They had a custom theme, so I used bootstrap subtheme to create the custom theme. They also had php in a lot of their content pages, so I installed the php filter module. Recently, I noticed that the following error gets displayed at the bottom of every page, after everything has loaded.

I want to get the status of the user on Drupal 8.

I want to get the status of the user on Drupal 8.

With the code below, if the user is online, the status is online. But if the user has been offline for more than an hour, the status is missing. Normally it should be offline.

What's wrong with this code ?

Thank you

Here is what I added in the user.html.twig file :

Pages

Subscribe with RSS Subscribe to RSS - Drupal 8.x