Manual:NameTableStore.php

From Linux Web Expert

Revision as of 16:29, 31 March 2022 by imported>Shirayuki (Marked this version for translation)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

NameTableStore is used for normalized data storage. It is a service that can convert a name into an ID (potentially assigning a new ID and storing the association in the database, if the name hasn't been used before) and back.

A separate instance of the service is used for each table. In core, these services can be obtained via NameTableStoreFactory . Currently used for the content_models , slot_roles and change_tag_def tables.