class UserProtection in User protect 8
Defines an user protection annotation object.
Hierarchy
- class \Drupal\Component\Annotation\Plugin implements AnnotationInterface
- class \Drupal\userprotect\Annotation\UserProtection
Expanded class hierarchy of UserProtection
7 classes are annotated with UserProtection
- Delete in src/
Plugin/ UserProtection/ Delete.php - Protects the user from being deleted.
- Edit in src/
Plugin/ UserProtection/ Edit.php - Protects the user from being edited.
- Mail in src/
Plugin/ UserProtection/ Mail.php - Protects user's mail address.
- Password in src/
Plugin/ UserProtection/ Password.php - Protects user's password.
- Roles in src/
Plugin/ UserProtection/ Roles.php - Protects user's roles.
File
- src/
Annotation/ UserProtection.php, line 12
Namespace
Drupal\userprotect\AnnotationView source
class UserProtection extends Plugin {
/**
* The plugin ID.
*
* @var string
*/
public $id;
/**
* The human-readable name of the protection.
*
* @var \Drupal\Core\Annotation\Translation
*
* @ingroup plugin_translatable
*/
public $label;
/**
* A brief description of the protection.
*
* @var \Drupal\Core\Annotation\Translation
*
* @ingroup plugin_translatable
*/
public $description = '';
/**
* A default weight used for presentation in the user interface only.
*
* @var int
*/
public $weight = 0;
/**
* Whether this protection is enabled or disabled by default.
*
* @var bool
*/
public $status = FALSE;
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
Plugin:: |
protected | property | The plugin definition read from the class annotation. | 1 |
Plugin:: |
public | function |
Gets the value of an annotation. Overrides AnnotationInterface:: |
5 |
Plugin:: |
public | function |
Gets the class of the annotated class. Overrides AnnotationInterface:: |
|
Plugin:: |
public | function |
Gets the unique ID for this annotated class. Overrides AnnotationInterface:: |
|
Plugin:: |
public | function |
Gets the name of the provider of the annotated class. Overrides AnnotationInterface:: |
|
Plugin:: |
protected | function | Parses an annotation into its definition. | |
Plugin:: |
public | function |
Sets the class of the annotated class. Overrides AnnotationInterface:: |
|
Plugin:: |
public | function |
Sets the name of the provider of the annotated class. Overrides AnnotationInterface:: |
|
Plugin:: |
public | function | Constructs a Plugin object. | 2 |
UserProtection:: |
public | property | A brief description of the protection. | |
UserProtection:: |
public | property | The plugin ID. | |
UserProtection:: |
public | property | The human-readable name of the protection. | |
UserProtection:: |
public | property | Whether this protection is enabled or disabled by default. | |
UserProtection:: |
public | property | A default weight used for presentation in the user interface only. |