Problem with form, getAliasByPath and language

Hello community

I have a problem with a form. I try to submit the taxonomy in order to form a URL. The problem is that I use
 
public function submitForm (array & $ form, FormStateInterface $ form_state) {
        // We bring the id of the taxonomy.
        $ id = reset ($ form_state-> getValues ​​('dish_dropdown'));
        // We generate the url according to the option of the selected array
        $ aliasManager = \ Drupal :: service ('path.alias_manager');
        $ alias = $ aliasManager-> getAliasByPath ('/ taxonomy / term /'. $ id);
        // We launched the url

Adding more information

I am after find out if this is possible and if so can someone point me in the right direction please.

I have multiple pages on our club site (over 250 clubs) and want to add extra information to the bottom. I know I can add the content field to the content of the page (but it means me going into every page and altering it when needed).

Is there a module or any way of adding the same content to a content type (clubs, in our case) without having to go to every page, it is the same content on all the club pages we want to show.

Business theme-slideshow not working.

Hello everyone,

I am working on a website with Business theme (https://www.drupal.org/project/business) but the slideshow is not working for some reasons. Can someone help me out? How do I upload the photos/activate the slideshow? does anyone have a link to the detailed handbook of the theme? Thank you

Warning: mkdir(): No such file or directory in Drupal…

I checked my error logs and found that these two errors are many times every min. 

Drupal - how to format content of txt files into HTML format and show as link on page

I am looking for help for my Drupal based site where an autosys job will get txt files as feed from one system and will rename them as ".html" & push them into Web/Application server, where my Drupal sites is running.
Problem is, content of these files are txt content. It does not have any banner footer, html-tables and any colorful HTML look.
Hence, I need to find a solution to read these html files, pushed by Autosys jobs, and massage these files to format the content using real HTML tags.  

Drupal Migration - Excel to Paragraphs and Nodes

I'm looking for someone with experience in setting up our migration system. We have data in Excel spreadsheets (invoices) and need the line items migrated as Paragraphs, then referenced by Invoice nodes.

It's a fairly complex migration that needs to happen each month - so we've setup a node type that allows admins to attach the invoice excel files to a node, then import them (either manually clicking a button or allow Cron to do this automatically etc).

Pages

Subscribe with RSS Subscribe to RSS - Drupal 8.x