class EntityTypeConfig in Content Planner 8
Class EntityTypeConfig.
Hierarchy
- class \Drupal\content_kanban\EntityTypeConfig
Expanded class hierarchy of EntityTypeConfig
1 file declares its use of EntityTypeConfig
- KanbanEntry.php in modules/
content_kanban/ src/ Component/ KanbanEntry.php
File
- modules/
content_kanban/ src/ EntityTypeConfig.php, line 8
Namespace
Drupal\content_kanbanView source
class EntityTypeConfig {
/**
* The bundle of the entity type.
*
* @var string
*/
public $id = '';
/**
* The label of the entity type bundle.
*
* @var string
*/
public $label = '';
/**
* The color that will be used for the bundle.
*
* @var string
*/
public $color = '';
/**
* The entity type (e.g. node etc.)
*
* @var string
*/
protected $entityType = '';
/**
* EntityTypeConfig constructor.
*
* @param string $entityType
* The entity type.
* @param string $bundle
* The bundle of the entity type.
* @param string $label
* The label.
* @param string $color
* The color.
*/
public function __construct($entityType, $bundle, $label, $color) {
$this->entityType = $entityType;
$this->id = $bundle;
$this->label = $label;
$this->color = $color;
}
/**
* Sets the color.
*
* @param string $value
* The color that will be used.
*/
public function setColor($value) {
$this->color = $value;
}
/**
* Gets the entity type.
*/
public function getEntityType() {
return $this->entityType;
}
/**
* Get Label.
*
* @return string
* Returns a string representing the entity type config label.
*/
public function getLabel() {
return $this->label;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
EntityTypeConfig:: |
public | property | The color that will be used for the bundle. | |
EntityTypeConfig:: |
protected | property | The entity type (e.g. node etc.) | |
EntityTypeConfig:: |
public | property | The bundle of the entity type. | |
EntityTypeConfig:: |
public | property | The label of the entity type bundle. | |
EntityTypeConfig:: |
public | function | Gets the entity type. | |
EntityTypeConfig:: |
public | function | Get Label. | |
EntityTypeConfig:: |
public | function | Sets the color. | |
EntityTypeConfig:: |
public | function | EntityTypeConfig constructor. |