public function JobItem::isState in Translation Management Tool 8
Checks whether the passed value matches the current state.
Parameters
string $state: The value to check the current state against.
Return value
bool TRUE if the passed state matches the current state, FALSE otherwise.
Overrides JobItemInterface::isState
5 calls to JobItem::isState()
- JobItem::isAborted in src/
Entity/ JobItem.php - Checks whether the state of this transaction is 'aborted'.
- JobItem::isAccepted in src/
Entity/ JobItem.php - Checks whether the state of this transaction is 'accepted'.
- JobItem::isActive in src/
Entity/ JobItem.php - Checks whether the state of this transaction is 'active'.
- JobItem::isInactive in src/
Entity/ JobItem.php - Checks whether the state of this transaction is 'inactive'.
- JobItem::isNeedsReview in src/
Entity/ JobItem.php - Checks whether the state of this transaction is 'needs review'.
File
- src/
Entity/ JobItem.php, line 576
Class
- JobItem
- Entity class for the tmgmt_job_item entity.
Namespace
Drupal\tmgmt\EntityCode
public function isState($state) {
return $this
->getState() == $state;
}