- 🇪🇸Spain budalokko Girona
This was fixed in #3124700: Deprecated Code Report → .
Follow-up to #2490966: [Meta] Replace deprecated usage of entity_create with a direct call to the entity type class →
entity_create() function is going to be deprecated so we shouldn't use it anymore. When the entity type is known we should directly call ::create().
Proposed resolution
Replace the deprecated call to entity_create() by a proper call to ::create().
Before:
entity_create('file', $field_values)->save();
After:
use Drupal\file\Entity\File;
File::create($field_values)->save();
Closed: outdated
1.0
Code
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.
This was fixed in #3124700: Deprecated Code Report → .