JobItemType.php

Namespace

Drupal\tmgmt\Plugin\views\field

File

src/Plugin/views/field/JobItemType.php
View source
<?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();
    }
  }

}

Classes

Namesort descending Description
JobItemType Field handler which shows the operations for a job.