JobItemState.php in Translation Management Tool 8
File
src/Plugin/views/field/JobItemState.php
View source
<?php
namespace Drupal\tmgmt\Plugin\views\field;
use Drupal\views\Plugin\views\field\NumericField;
use Drupal\views\ResultRow;
class JobItemState extends NumericField {
public function render(ResultRow $values) {
$job_item = $this
->getEntity($values);
return $job_item
->getStateIcon();
}
}
Classes
Name |
Description |
JobItemState |
Field handler which shows the link for translating translation task items. |