Upgraded imagemagick and manually altered pdf to image module to handle changes....
[yaffs-website] / web / modules / contrib / entity / tests / modules / entity_module_test / src / Entity / EnhancedEntityBundle.php
1 <?php
2
3 namespace Drupal\entity_module_test\Entity;
4
5 use Drupal\Core\Config\Entity\ConfigEntityBundleBase;
6 use Drupal\Core\Entity\EntityDescriptionInterface;
7 use Drupal\Core\Entity\RevisionableEntityBundleInterface;
8
9 /**
10  * Provides bundles for the test entity.
11  *
12  * @ConfigEntityType(
13  *   id = "entity_test_enhanced_bundle",
14  *   label = @Translation("Entity test with enhancments - Bundle"),
15  *   admin_permission = "administer entity_test_enhanced",
16  *   config_prefix = "entity_test_enhanced_bundle",
17  *   bundle_of = "entity_test_enhanced",
18  *   entity_keys = {
19  *     "id" = "id",
20  *     "label" = "label"
21  *   },
22  *   config_export = {
23  *     "id",
24  *     "label",
25  *     "description"
26  *   },
27  * )
28  */
29 class EnhancedEntityBundle extends ConfigEntityBundleBase implements EntityDescriptionInterface, RevisionableEntityBundleInterface {
30
31   /**
32    * The bundle ID.
33    *
34    * @var string
35    */
36   protected $id;
37
38   /**
39    * The bundle label.
40    *
41    * @var string
42    */
43   protected $label;
44
45   /**
46    * The bundle description.
47    *
48    * @var string
49    */
50   protected $description;
51
52   /**
53    * Should new entities of this bundle have a new revision by default.
54    *
55    * @var bool
56    */
57   protected $new_revision = FALSE;
58
59   /**
60    * {@inheritdoc}
61    */
62   public function getDescription() {
63     return $this->description;
64   }
65
66   /**
67    * {@inheritdoc}
68    */
69   public function setDescription($description) {
70     $this->description = $description;
71     return $this;
72   }
73
74   /**
75    * {@inheritdoc}
76    */
77   public function shouldCreateNewRevision() {
78     return $this->new_revision;
79   }
80
81 }