You are here

public function ShouldCreateJobEvent::__construct in Translation Management Tool 8

ShouldCreateJobEvent constructor.

Parameters

\Drupal\tmgmt\JobInterface $job: Continuous job.

string $plugin: The plugin name.

string $item_type: The source item type.

string $item_id: The source item id.

bool $should_create_item: Whether or not the item should be created.

File

src/Events/ShouldCreateJobEvent.php, line 64

Class

ShouldCreateJobEvent
Represents a job item about to be added to a continuous job.

Namespace

Drupal\tmgmt\Events

Code

public function __construct(JobInterface $job, $plugin, $item_type, $item_id, $should_create_item) {
  $this->job = $job;
  $this->plugin = $plugin;
  $this->itemType = $item_type;
  $this->itemId = $item_id;
  $this->shouldCreateItem = $should_create_item;
}