From 85d67e5132b46e4cd61e9fd573e616f8150179b1 Mon Sep 17 00:00:00 2001
From: catch <catch@35733.no-reply.drupal.org>
Date: Thu, 21 Dec 2023 07:56:04 +0000
Subject: [PATCH] Issue #3404975 by Akhil Babu, joachim, smustgrave: Editor
 entity class should document that it expects a 1-1 relationship with matching
 IDs with a format entity

---
 core/modules/editor/src/Entity/Editor.php | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/core/modules/editor/src/Entity/Editor.php b/core/modules/editor/src/Entity/Editor.php
index dd102d917975..b8c041df85b8 100644
--- a/core/modules/editor/src/Entity/Editor.php
+++ b/core/modules/editor/src/Entity/Editor.php
@@ -9,6 +9,11 @@
 /**
  * Defines the configured text editor entity.
  *
+ * An Editor entity is created when a filter format entity (Text format) is
+ * saved after selecting an editor plugin (eg: CKEditor). The ID of the
+ * Editor entity will be same as the ID of the filter format entity in which
+ * the editor plugin was selected.
+ *
  * @ConfigEntityType(
  *   id = "editor",
  *   label = @Translation("Text editor"),
-- 
GitLab