oliverdavies.uk/content/node.0dc691fb-cba3-4dce-b9ad-94fd84b7ca7f.yml

65 lines
2.5 KiB
YAML

uuid:
- value: 0dc691fb-cba3-4dce-b9ad-94fd84b7ca7f
langcode:
- value: en
type:
- target_id: daily_email
target_type: node_type
target_uuid: 8bde1f2f-eef9-4f2d-ae9c-96921f8193d7
revision_timestamp:
- value: '2025-05-11T09:00:44+00:00'
revision_uid:
- target_type: user
target_uuid: b8966985-d4b2-42a7-a319-2e94ccfbb849
revision_log: { }
status:
- value: true
uid:
- target_type: user
target_uuid: b8966985-d4b2-42a7-a319-2e94ccfbb849
title:
- value: |
Making my Drupal module template Drupal 10 compatible
created:
- value: '2023-04-21T00:00:00+00:00'
changed:
- value: '2025-05-11T09:00:44+00:00'
promote:
- value: false
sticky:
- value: false
default_langcode:
- value: true
revision_translation_affected:
- value: true
path:
- alias: /daily/2023/04/21/making-my-drupal-module-template-drupal-10-compatible
langcode: en
body:
- value: |
<p>Today, I made my <a href="https://github.com/opdavies/drupal-module-template">Drupal module template</a> compatible with Drupal 10.</p>
<p>Because Drupal 10 is developed from Drupal 9, the changes between the two and the changes required are minimal.</p>
<p>In this case, I only needed to change the <code>core_version_requirement</code> in <code>drupal_module_template.info.yml</code> from <code>^9</code> to <code>^9 || ^10</code> - meaning the template works for both Drupal 9 and 10, so there's no need for different versions.</p>
<p>If it used any deprecated code that was removed before Drupal 10, I'd have needed to update it to use the Drupal 10-compliant code.</p>
<p>Updating to new major Drupal versions is much easier than it used to be!</p>
format: full_html
processed: |
<p>Today, I made my <a href="https://github.com/opdavies/drupal-module-template">Drupal module template</a> compatible with Drupal 10.</p>
<p>Because Drupal 10 is developed from Drupal 9, the changes between the two and the changes required are minimal.</p>
<p>In this case, I only needed to change the <code>core_version_requirement</code> in <code>drupal_module_template.info.yml</code> from <code>^9</code> to <code>^9 || ^10</code> - meaning the template works for both Drupal 9 and 10, so there's no need for different versions.</p>
<p>If it used any deprecated code that was removed before Drupal 10, I'd have needed to update it to use the Drupal 10-compliant code.</p>
<p>Updating to new major Drupal versions is much easier than it used to be!</p>
summary: null
field_daily_email_cta: { }