Find Jobs
Hire Freelancers

Drupal - set html 'lang' to match node 'langcode'?

$30-50 USD

Fermé
Publié il y a plus de 2 ans

$30-50 USD

Payé lors de la livraison
I would like to change a node's html 'lang' from site's default to the node's 'langcode'. For example, if I create a node and while creating I select French as the language, I would like the page's html 'lang' to "fr" So far I have this but I'm getting an error of 'Error: Call to a member function getFormObject() on null' /** @var \Drupal\Core\Template\Attribute $html_attribute */ $html_attribute = $variables['html_attributes']; $node_langcode = $node->get('langcode')->value; if ($html_attribute->hasAttribute("lang")) { $html_attribute->removeAttribute('lang'); $html_attribute->setAttribute('lang', $node_langcode); } Deliverables Code that changes the node's html attribute to the node langcode.
N° de projet : 32786123

Concernant le projet

10 propositions
Projet à distance
Actif à il y a 2 ans

Cherchez-vous à gagner de l'argent ?

Avantages de faire une offre sur Freelancer

Fixez votre budget et vos délais
Soyez payé pour votre travail
Surlignez votre proposition
Il est gratuit de s'inscrire et de faire des offres sur des travaux
10 freelances proposent en moyenne $60 USD pour ce travail
Avatar de l'utilisateur
Hi, I'm a Drupal developer and I can do this project easily. You will find my reviews and completion percentage better than others. I have good experience in CSS, PHP, HTML and Drupal. Over 8 years of experience in developing website's, done more than 400 projects successfully on this site itself with 97% completion rate. * Europe citizen * * 30 days of FREE maintenance * Please let me know Best regards. With plans of the further cooperation. Thanks Oleg!
$100 USD en 2 jours
4,8 (115 commentaires)
6,2
6,2
Avatar de l'utilisateur
Hi! How are you doing? I have read the project description and really interested in this job, I have 4 years’ experience doing similar jobs regarding to these skills Drupal, JavaScript and PHP. Please start the chat, I have some questions about this task so we can have detailed discussion about project. Thanks! Umair
$50 USD en 7 jours
5,0 (15 commentaires)
5,0
5,0
Avatar de l'utilisateur
Hello Dear Client, My name is Bhupendra, i have 3+ years of experience in Drupal development and i can develop for all the versions of Drupal, I was working with a company and now started to work as full time freelancer over here. I have lots of Experience in web development, look over my skills set below 1) Drupal theme and module development. 2) Drupal custom module development. 3) Custom theme and theme customization, making mobile ready. 4) E-Commerce, Ubercart, Commerce Kickstart and other payment integration. 5) Drupal Upgradation from Minor version to Major version. 6) PHP 7) MYSQL 8) HTML5 9) CSS3 10) Bootstrap. Please give me a chance to show my skills here. I will be great source for you & your Organization . I will try to satisfy you with my performance. Looking forward for your positive response. Bhupendra Patel
$40 USD en 1 jour
5,0 (47 commentaires)
5,0
5,0
Avatar de l'utilisateur
Hi, i understood your project details very well and i can finish the same in your timeline. come over chat to further discuss
$60 USD en 1 jour
4,9 (52 commentaires)
4,7
4,7
Avatar de l'utilisateur
Hello Employer, I'm a Drupal developer with 10 years of experience. Drupal versions: 9, 8, 7 & 6. I'm expert in writting custom modules. I understand hooks, variables and templates functions very well. I can easily solve the error that you are getting and help to get your solution. Thanks, Sandesh
$40 USD en 1 jour
5,0 (18 commentaires)
4,4
4,4
Avatar de l'utilisateur
Hi, I've gone through your reference code and I can change a node's html 'lang' from site's default to the node's langcode as per your requirements. So kindly come to the chat for further duscussion and I assure you that I can pull each and every functionality of what you are hoping for. Hope hear soon and a positive response from you. Kind Regrads Asim A.
$40 USD en 1 jour
0,0 (0 commentaires)
0,0
0,0
Avatar de l'utilisateur
Hi there, My name is Umair. I have good experience with Drupal, JavaScript and PHP. I am a practicing Developer/Designer Since 2015. I can perfectly work on this project regarding Drupal, JavaScript and PHP. Based on my experience, I can do this task for you and the quality of work would be up to the mark. However, further discussions are required for more clarity. I will wait for your text to discuss the project in further detail. Thanks & Regards Umair A.
$150 USD en 10 jours
0,0 (0 commentaires)
0,0
0,0

À propos du client

Drapeau de FRANCE
Paris, France
0,0
0
Membre depuis janv. 27, 2022

Vérification du client

Merci ! Nous vous avons envoyé un lien par e-mail afin de réclamer votre crédit gratuit.
Une erreur a eu lieu lors de l'envoi de votre e-mail. Veuillez réessayer.
Utilisateurs enregistrés Total des travaux publiés
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Chargement de l'aperçu
Permission donnée pour la géolocalisation.
Votre session de connexion a expiré et vous avez été déconnecté. Veuillez vous connecter à nouveau.