Skip to content
Snippets Groups Projects

Convert dblog entries into entities

Compare and
41 files
+ 1984
307
Compare changes
  • Side-by-side
  • Inline
Files
41
@@ -37,6 +37,12 @@ public function __construct(EntityTypeManagerInterface $entity_type_manager, Tra
@@ -37,6 +37,12 @@ public function __construct(EntityTypeManagerInterface $entity_type_manager, Tra
* {@inheritdoc}
* {@inheritdoc}
*/
*/
public function validate($module) {
public function validate($module) {
 
// Even when dblog provides content entries, they are safe to be deleted
 
// when the module is uninstalled. This was the legacy behavior of dblog
 
// before introducing entity support.
 
if ($module == 'dblog') {
 
return [];
 
}
$entity_types = $this->entityTypeManager->getDefinitions();
$entity_types = $this->entityTypeManager->getDefinitions();
$reasons = [];
$reasons = [];
foreach ($entity_types as $entity_type) {
foreach ($entity_types as $entity_type) {
Loading