public function LocalTask::isStatus

Checks whether the passed value matches the current status.

Parameters

int $status: The value to check the current status against.

Return value

bool TRUE if the passed status matches the current status, FALSE otherwise.

Overrides LocalTaskInterface::isStatus

5 calls to LocalTask::isStatus()
LocalTask::isClosed in translators/tmgmt_local/src/Entity/LocalTask.php
Returns whether the status of this task is 'closed'.
LocalTask::isCompleted in translators/tmgmt_local/src/Entity/LocalTask.php
Returns whether the status of this task is 'completed'.
LocalTask::isPending in translators/tmgmt_local/src/Entity/LocalTask.php
Returns whether the status of this task is 'pending'.
LocalTask::isRejected in translators/tmgmt_local/src/Entity/LocalTask.php
Returns whether the status of this task is 'rejected'.
LocalTask::isUnassigned in translators/tmgmt_local/src/Entity/LocalTask.php
Returns whether the status of this task is 'unassigned'.

File

translators/tmgmt_local/src/Entity/LocalTask.php, line 272

Class

LocalTask
Entity class for the local task entity.

Namespace

Drupal\tmgmt_local\Entity

Code

public function isStatus($status) {
  return $this
    ->getStatus() == $status;
}