public function JobItem::getState

Returns the state of the job item. Can be one of the job item state constants.

Return value

int The state of the job item.

Overrides JobItemInterface::getState

1 call to JobItem::getState()
JobItem::isState in src/Entity/JobItem.php
Checks whether the passed value matches the current state.

File

src/Entity/JobItem.php, line 584

Class

JobItem
Entity class for the tmgmt_job_item entity.

Namespace

Drupal\tmgmt\Entity

Code

public function getState() {
  return $this
    ->get('state')->value;
}