Unique
Last updated on
21 August 2023
Unique validator make sure the values of one field is unique.it support 3 options:
global: the value is unique accross all entity for this field.
entity:the value is unique in current entity.
bundle: the value is unique in current bundle.
Not all entity support bundle, for example, user. maybe you will get a PDO exception ,if you use bundle on user entity.You should make it correctly by your self.
Help improve this page
Page status: Not set
You can:
You can:
- Log in, click Edit, and edit this page
- Log in, click Discuss, update the Page status value, and suggest an improvement
- Log in and create a Documentation issue with your suggestion
Still on Drupal 7? Security support for Drupal 7 ended on 5 January 2025. Please visit our Drupal 7 End of Life resources page to review all of your options.