Mercurial > hg > cmmr2012-drupal-site
comparison core/modules/user/src/Plugin/Condition/UserRole.php @ 5:12f9dff5fda9 tip
Update to Drupal core 8.7.1
author | Chris Cannam |
---|---|
date | Thu, 09 May 2019 15:34:47 +0100 |
parents | c75dbcec494b |
children |
comparison
equal
deleted
inserted
replaced
4:a9cd425dd02b | 5:12f9dff5fda9 |
---|---|
9 * Provides a 'User Role' condition. | 9 * Provides a 'User Role' condition. |
10 * | 10 * |
11 * @Condition( | 11 * @Condition( |
12 * id = "user_role", | 12 * id = "user_role", |
13 * label = @Translation("User Role"), | 13 * label = @Translation("User Role"), |
14 * context = { | 14 * context_definitions = { |
15 * "user" = @ContextDefinition("entity:user", label = @Translation("User")) | 15 * "user" = @ContextDefinition("entity:user", label = @Translation("User")) |
16 * } | 16 * } |
17 * ) | 17 * ) |
18 */ | 18 */ |
19 class UserRole extends ConditionPluginBase { | 19 class UserRole extends ConditionPluginBase { |