EntityTestBundle.php

Same filename in other branches
  1. 9 core/modules/system/tests/modules/entity_test/src/Entity/EntityTestBundle.php
  2. 8.9.x core/modules/system/tests/modules/entity_test/src/Entity/EntityTestBundle.php
  3. 10 core/modules/system/tests/modules/entity_test/src/Entity/EntityTestBundle.php

Namespace

Drupal\entity_test\Entity

File

core/modules/system/tests/modules/entity_test/src/Entity/EntityTestBundle.php

View source
<?php

declare (strict_types=1);
namespace Drupal\entity_test\Entity;

use Drupal\Core\Entity\Attribute\ConfigEntityType;
use Drupal\Core\Entity\BundleEntityFormBase;
use Drupal\Core\Entity\EntityAccessControlHandler;
use Drupal\Core\Entity\Routing\DefaultHtmlRouteProvider;
use Drupal\Core\StringTranslation\TranslatableMarkup;
use Drupal\Core\Config\Entity\ConfigEntityBundleBase;
use Drupal\Core\Entity\EntityDescriptionInterface;

/**
 * Defines the Test entity bundle configuration entity.
 */
class EntityTestBundle extends ConfigEntityBundleBase implements EntityDescriptionInterface {
    
    /**
     * The machine name.
     *
     * @var string
     */
    protected $id;
    
    /**
     * The human-readable name.
     *
     * @var string
     */
    protected $label;
    
    /**
     * The description.
     *
     * @var string
     */
    protected $description;
    
    /**
     * {@inheritdoc}
     */
    public function getDescription() {
        return $this->description;
    }
    
    /**
     * {@inheritdoc}
     */
    public function setDescription($description) {
        $this->description = $description;
        return $this;
    }

}

Classes

Title Deprecated Summary
EntityTestBundle Defines the Test entity bundle configuration entity.

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.