You are here

public function KanbanEntry::__construct in Content Planner 8

KanbanEntry constructor.

Parameters

object $entity: The entity object.

string $content_moderation_status: A string representing the current content moderation status.

\Drupal\content_kanban\EntityTypeConfig $entity_type_config: The entity type config object.

File

modules/content_kanban/src/Component/KanbanEntry.php, line 62

Class

KanbanEntry
Class KanbanEntry.

Namespace

Drupal\content_kanban\Component

Code

public function __construct($entity, $content_moderation_status, EntityTypeConfig $entity_type_config) {
  $this->entity = $entity;
  $this->contentModerationStatus = $content_moderation_status;
  $this->entityTypeConfig = $entity_type_config;
  $this->config = \Drupal::config(SettingsForm::CONFIG_NAME);
}