tmgmt-8.x-1.x-dev/src/Plugin/views/field/JobItemType.php
src/Plugin/views/field/JobItemType.php
<?php
namespace Drupal\tmgmt\Plugin\views\field;
use Drupal\views\Plugin\views\field\FieldPluginBase;
use Drupal\views\ResultRow;
/**
* Field handler which shows the operations for a job.
*
* @ViewsField("tmgmt_job_item_type")
*/
class JobItemType extends FieldPluginBase {
function render(ResultRow $values) {
if ($entity = $this->getEntity($values)) {
return $entity->getSourceType();
}
}
}
