Alias not set in node creation
If you are programmatically creating a node, and setting the alias is not working, make sure you have turned off the "Generate automatic URL alias" setting:
Add tag to query with hook_query_TAG_alter and filter for moderation state
EntityTypeManager does not allow for filtering through moderation states, although it is in the works for Drupal 11: https://www.drupal.org/project/drupal/issues/3025164#comment-13221005. 
Add sections, components and blocks to Layout Builder programmatically
In the case that you have a field on a node that you have some data in, and you wish to add this to the layout builder of the page programmatically, here is how to do so, with a landing page type n
Migrating from Sitecore to Drupal
If you have been tasked with migrating a site from Sitecore to Drupal, you might have run into the same problem I did -- a complete lack of all documentation on the subject.
D10 Upgrades Common Problems and Solutions
D10 Upgrades from Drupal 9 can be tricky! There are usually unforeseen issues. Here are some commonly seen problems and solutions.
Create a Paragraph or Nested Paragraph and Add to Node
Create a paragraph
OOP - Abstract vs. Static Classes
Abstract classes may have implemented methods, whereas interfaces have no implementation in themselves.
file_save_data deprecated - replace with
replace
:$filesaved = file_save_data($file, $destination, FileSystemInterface::EXISTS_REPLACE);
With:
$fileRepository = \Drupal::service('file.repository');
$filesaved = $fileRepository->wSet date field of node to current time
// Set the current date and time.
$node = Node::load(1);
$node->set('field_date', date('Y-m-d', time()));
$node->set('field_datetime', date('Y-m-d\TH:i:s', time()));
$node->set('created