Still on Drupal 7? Security support for Drupal 7 ended on 5 January 2025. Please visit our Drupal 7 End of Life resources page to review all of your options.
Just curious about something. If I pass a node to a method, is it better to use Node or NodeInterface, and what is the difference between the two when using it like this? Example.
Previous week I updated the Entity API module from the Extend page. After doing this, I got a lot of errors.
Since then, when clearing the cache manually, I don't get the Cache cleared success message. When updating modules manually, it gets stuck on Preparing to download selected update. I've got a product importer which also get's stuck on 0%.
I am using Drupal Version 8.3.9. Recently, I have installed content moderation module to check the flow before explaining to client. It was worked well, but when i try to edit any content type, getting error like below
TypeError: Argument 1 passed to Drupal\content_moderation\ModerationInformation::getWorkflowForEntity() must implement interface Drupal\Core\Entity\ContentEntityInterface, instance of Drupal\node\Entity\NodeType given, called in /core/modules/content_moderation/src/Entity/Handler/NodeModerationHandler.php on line 57