class JobItemState

Same name in this branch
  1. 8.x-1.x src/Plugin/views/field/JobItemState.php \Drupal\tmgmt\Plugin\views\field\JobItemState
  2. 8.x-1.x src/Plugin/views/filter/JobItemState.php \Drupal\tmgmt\Plugin\views\filter\JobItemState

Field handler which shows the link for translating translation task items.

Plugin annotation

@ViewsField("tmgmt_job_item_state");

Hierarchy

  • class \Drupal\tmgmt\Plugin\views\field\JobItemState extends \Drupal\views\Plugin\views\field\NumericField

Expanded class hierarchy of JobItemState

File

src/Plugin/views/field/JobItemState.php, line 13

Namespace

Drupal\tmgmt\Plugin\views\field
View source
class JobItemState extends NumericField {

  /**
   * {@inheritdoc}
   */
  public function render(ResultRow $values) {

    /** @var \Drupal\tmgmt\JobItemInterface $job_item */
    $job_item = $this
      ->getEntity($values);
    return $job_item
      ->getStateIcon();
  }

}

Members