Still on Drupal 7? Security support for Drupal 7 ended on 5 January 2025. Please visit our Drupal 7 End of Life resources page to review all of your options.
My company is wanting to roll out a solution to administer an employee Professional Development Program. This will involve HR allocating approved courses to department heads, who then allocate to employees.
This three tier model (HR -> Dept. Heads -> Employees) will hopefully be powered by Drupal, as that’s the CMS we’re familiar with.
When I do composer update this morning to update from 8.6.4 to 8.6.5 on my local development site, I noticed that this overwrite my development.services.yml file as well. I modified this file added some parameters for making theme debug easier .
So what is the better way to update my local development site? Instead of copy/paste development.services.yml file each time when composer update ?
I have a small bit of php code I'd like to run, but want it to use the title of the page in the code as a variable. What is this called in Drupal and specifically, how do I find the right syntax to do this successfully? How can I identify this on an existing page?
For example, my code might be:
<?php
$pagetitle = $some[kind][of][drupal][array][here???]; //identifies the current node's title and stores it in $pagetitle