Security update for permissions_by_term
[yaffs-website] / web / modules / contrib / permissions_by_term / src / Entity / Config / Settings.php
1 <?php
2
3 namespace Drupal\permissions_by_term\Entity\Config;
4
5 use Drupal\Core\Config\Entity\ConfigEntityBase;
6
7 /**
8  * Defines the settings entity.
9  *
10  * The lines below, starting with '@ConfigEntityType,' are a plugin annotation.
11  * These define the entity type to the entity type manager.
12  *
13  * The properties in the annotation are as follows:
14  *  - id: The machine name of the entity type.
15  *  - label: The human-readable label of the entity type. We pass this through
16  *    the "@Translation" wrapper so that the multilingual system may
17  *    translate it in the user interface.
18  *  - handlers: An array of entity handler classes, keyed by handler type.
19  *    - access: The class that is used for access checks.
20  *    - list_builder: The class that provides listings of the entity.
21  *    - form: An array of entity form classes keyed by their operation.
22  *  - entity_keys: Specifies the class properties in which unique keys are
23  *    stored for this entity type. Unique keys are properties which you know
24  *    will be unique, and which the entity manager can use as unique in database
25  *    queries.
26  *  - links: entity URL definitions. These are mostly used for Field UI.
27  *    Arbitrary keys can set here. For example, User sets cancel-form, while
28  *    Node uses delete-form.
29  *
30  * @see http://previousnext.com.au/blog/understanding-drupal-8s-config-entities
31  * @see annotation
32  * @see Drupal\Core\Annotation\Translation
33  *
34  * @ingroup permissions_by_term
35  *
36  * @ConfigEntityType(
37  *   id = "settings",
38  *   label = @Translation("Settings"),
39  *   entity_keys = {
40  *     "id" = "id",
41  *     "value" = "value"
42  *   }
43  * )
44  */
45 class Settings extends ConfigEntityBase {
46
47   /**
48    * @var string
49    */
50   public $id;
51
52   /**
53    * @var bool
54    */
55   public $value;
56
57 }