Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(state_api): Add State API module for custom state management at /admin/states #23

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

sapatevaibhav
Copy link
Collaborator

Installation

  1. Download and place the vaibhav_state_api module in your Drupal site's modules/custom directory.
  2. Enable the module using the following Drush command:
    drush en vaibhav_state_api
    Or enable it through the Drupal admin interface.

Usage

  • Navigate to the demo page provided by the module at /admin/states.
  • Use the provided links to set a new value or delete the current value stored in the state.

@sapatevaibhav sapatevaibhav self-assigned this Mar 24, 2025
* category = "custom_states"
* )
*/
class CustomState extends PluginBase implements StateInterface {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@sapatevaibhav , Why do we need this custom state manager, can't we do this using Drupal's State API?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants