Related Content
Drupal 11: How To Alter Entity View Builder Configuration Before Rendering
I encountered an issue on a Drupal 11 site recently where I had a block that was rendering an entity to display on a page.
DrupalCamp Scotland 2025
This year, DrupalCamp Scotland was held on the 7th November, at the University of Edinburgh.
On the morning of the conference I made the quick walk from by bed and breakfast and arrived at 50 George Square to join in with around 60 attendees to a day of talks and chatting.
Drupal 11: Programmatically Change A Layout Paragraphs Layout
The Layout Paragraphs module is a great way of combining the flexibility of the layout system with the content component sytem of the Paragraphs module.
Drupal 11: Using SDC Component Library To Preview Single Directory Components
Single Directory Components (SDC) consist of a directory of files that go together to create a small component on a Drupal website. SDC can be nested together, which means that a consistent set of elements can be created and plugged together on a site.
Drupal 11: Using Storybook To Preview Single Directory Components
Single Directory Components (SDC) consist of a directory of files that go together to create a small component on a Drupal website. The component contains all the templates, styles, script, and images needed to display some content in a consistent way.
Drupal 11: Object Oriented Hooks And Hook Service Classes
Hooks are used in Drupal to allow modules and themes to listen to or trigger different sorts of events in a Drupal system. During these events Drupal will pause and ask if any modules want to have any say in the event that is currently being triggered.
Comments
Thanks Phillip. You just helped me shave 0.5 GB off a database.
For anyone using phpMyadmin to run the SQL, the format is:
Delete `field_data_comment_body`.*
FROM `field_data_comment_body`LEFT JOIN comment ON field_data_comment_body.entity_id = comment.cid
WHERE comment.cid IS NULL
DELETE `field_revision_comment_body`.*
FROM `field_revision_comment_body`
LEFT JOIN `comment` ON field_revision_comment_body.entity_id = comment.cid
WHERE comment.cid IS NULL
Submitted by Mikesnp on Fri, 03/21/2014 - 20:22
PermalinkSubmitted by Roxane on Sat, 05/31/2014 - 15:45
PermalinkSubmitted by Valentin on Thu, 01/29/2015 - 15:03
PermalinkSubmitted by zyvervenz on Mon, 02/29/2016 - 09:59
PermalinkAdd new comment