oliverdavies.uk/content/node.7980b93f-4708-4499-8047-08cb9469b4f2.json

91 lines
No EOL
2.8 KiB
JSON

{
"uuid": [
{
"value": "7980b93f-4708-4499-8047-08cb9469b4f2"
}
],
"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:40+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": "Write less Drupal code\n"
}
],
"created": [
{
"value": "2023-06-08T00:00:00+00:00"
}
],
"changed": [
{
"value": "2025-05-11T09:00:40+00:00"
}
],
"promote": [
{
"value": false
}
],
"sticky": [
{
"value": false
}
],
"default_langcode": [
{
"value": true
}
],
"revision_translation_affected": [
{
"value": true
}
],
"path": [
{
"alias": "\/daily\/2023\/06\/08\/write-less-drupal-code",
"langcode": "en"
}
],
"body": [
{
"value": "\n <p>An approach I like to make my Drupal code more maintainable is to write less of it and move any generic PHP code into separate framework-agnostic libraries.<\/p>\n\n<p>These could be in open-sourced packages installed from Packagist or kept within the same repository.<\/p>\n\n<p>Having less Drupal-specific code keeps modules smaller and easier to maintain and upgrade.<\/p>\n\n<p>If I need to upgrade a module from Drupal 7 to Drupal 10, I can reuse the generic code and focus on changing its integration points with Drupal to make it compatible.<\/p>\n\n ",
"format": "full_html",
"processed": "\n <p>An approach I like to make my Drupal code more maintainable is to write less of it and move any generic PHP code into separate framework-agnostic libraries.<\/p>\n\n<p>These could be in open-sourced packages installed from Packagist or kept within the same repository.<\/p>\n\n<p>Having less Drupal-specific code keeps modules smaller and easier to maintain and upgrade.<\/p>\n\n<p>If I need to upgrade a module from Drupal 7 to Drupal 10, I can reuse the generic code and focus on changing its integration points with Drupal to make it compatible.<\/p>\n\n ",
"summary": null
}
]
}