By mourad-zitouni, 22 March, 2023 Adding Constraints to Fields in Drupal 9: A Comprehensive Guide When working with Drupal, it's important to ensure data integrity by validating user input. Drupal 9 provides a robust system for field validation through constraints. Tags drupal 9 Field Validation Constraints Custom Constraint Field API Data Integrity Drupal Development Symfony Validator Entity API
By mourad-zitouni, 26 December, 2021 How to check current user role This time we will check if the current user has role 'administrator', we will use a simple controller example to demonstrate that. Tags drupal 9 user role