Issue #1479454 by Hugo Wetterberg, galooph, dawehner, andypost, marcingy, heyrocker...
[project/drupal.git] / core / modules / user / lib / Drupal / user / Plugin / Core / Entity / Role.php
1 <?php
2
3 /**
4 * @file
5 * Contains Drupal\user\Plugin\Core\Entity\Role.
6 */
7
8 namespace Drupal\user\Plugin\Core\Entity;
9
10 use Drupal\Core\Annotation\Plugin;
11 use Drupal\Core\Annotation\Translation;
12 use Drupal\Core\Config\Entity\ConfigEntityBase;
13
14 /**
15 * Defines the user role entity class.
16 *
17 * @Plugin(
18 * id = "user_role",
19 * label = @Translation("Role"),
20 * module = "user",
21 * controller_class = "Drupal\user\RoleStorageController",
22 * config_prefix = "user.role",
23 * entity_keys = {
24 * "id" = "id",
25 * "uuid" = "uuid",
26 * "label" = "label"
27 * }
28 * )
29 */
30 class Role extends ConfigEntityBase {
31
32 /**
33 * The machine name of this role.
34 *
35 * @var string
36 */
37 public $id;
38
39 /**
40 * The UUID of this role.
41 *
42 * @var string
43 */
44 public $uuid;
45
46 /**
47 * The human-readable label of this role.
48 *
49 * @var string
50 */
51 public $label;
52
53 /**
54 * The weight of this role in administrative listings.
55 *
56 * @var int
57 */
58 public $weight;
59
60 }