A recent tweet by CHX got me thinking. Drupal 8 was released almost 5 years ago, and some things are still a mystery for a lot of developers, including me. Let's explore the various ways of updating field values in Drupal 8 and 9.
Menu Link Attributes is a great Drupal 8 and 9 module that allows you to add attributes to your menu links. Let's see how you can set the attributes programmatically.
Quick tip on how to set date fields programmatically in Drupal 8 and 9.
Creating a menu link programmatically in Drupal 8 and 9 is easy. You have to provide four values, link title and Uri, menu name for which you want to create a menu link, and optionally you can provide a link weight.