3 namespace Drupal\entity_test\Entity;
5 use Drupal\Core\Config\Entity\ConfigEntityBundleBase;
6 use Drupal\Core\Entity\EntityDescriptionInterface;
9 * Defines the Test entity bundle configuration entity.
12 * id = "entity_test_bundle",
13 * label = @Translation("Test entity bundle"),
15 * "access" = "\Drupal\Core\Entity\EntityAccessControlHandler",
17 * "default" = "\Drupal\Core\Entity\BundleEntityFormBase",
19 * "route_provider" = {
20 * "html" = "Drupal\Core\Entity\Routing\DefaultHtmlRouteProvider",
23 * admin_permission = "administer entity_test_bundle content",
24 * config_prefix = "entity_test_bundle",
25 * bundle_of = "entity_test_with_bundle",
36 * "add-form" = "/entity_test_bundle/add",
40 class EntityTestBundle extends ConfigEntityBundleBase implements EntityDescriptionInterface {
50 * The human-readable name.
61 protected $description;
66 public function getDescription() {
67 return $this->description;
73 public function setDescription($description) {
74 $this->description = $description;