pair_store
5 sites
No security coverage
Pair Store is a lightweight Drupal module that allows you to store, retrieve,
and manage key-value pairs directly in your site configuration or runtime settings.
It's useful for developers looking for a simple interface to store paired data,
especially for temporary or small data needs without building a full entity or content type.
Features
- Store arbitrary key-value data.
- Simple API to set, get, delete, and list pairs.
- Provides an admin UI to /admin/pair-store/list key-value pairs.
Installation
-
Download the module:
- Using Composer:
composer require drupal/pair_store - Or manually download it from the Pair Store project page.
- Using Composer:
-
Enable the module:
- Through the admin UI at
/admin/modules. - Or using Drush:
drush en pair_store
- Through the admin UI at
Usage
Programmatic API
$config = \Drupal::config('pair_store.settings');
$pairs = $config->get('pairs');
Maintainers
- Chance Nyasulu - chancenyasulu