StubEntityBase.php

Same filename and directory in other branches
  1. 11.x core/tests/Drupal/Tests/Core/Entity/StubEntityBase.php

Namespace

Drupal\Tests\Core\Entity

File

core/tests/Drupal/Tests/Core/Entity/StubEntityBase.php

View source
<?php

declare (strict_types=1);
namespace Drupal\Tests\Core\Entity;

use Drupal\Core\Entity\EntityBase;

/**
 * A stub base entity for testing purposes.
 */
class StubEntityBase extends EntityBase {
  
  /**
   * The ID for the stub entity.
   *
   * @var string
   */
  public $id;
  
  /**
   * The language code for the stub entity.
   *
   * @var string
   */
  public $langcode;
  
  /**
   * The UUID for the stub entity.
   *
   * @var string
   */
  public $uuid;
  
  /**
   * The label for the stub entity.
   *
   * @var string
   */
  public $label;

}

Classes

Title Deprecated Summary
StubEntityBase A stub base entity for testing purposes.

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