required_api
Security covered
This module provides a framework for plugins to conditionally mark fields as required. It contains one default condition, which is the same as the core behaviour: the field is either always or never required.
This is an API module, which means that you need to install other modules providing required strategies. The following strategies are currently available:
- Required by role: allows fields to only be required when the current user has a certain role
- Required by Content Moderation state: allows fields to only be required when their associated entity reaches a certain Content Moderation state