class LoopCount

Field handler which shows the word count for a job or job item.

Plugin annotation

@ViewsField("tmgmt_local_loopcount");

Hierarchy

  • class \Drupal\tmgmt_local\Plugin\views\field\LoopCount extends \Drupal\views\Plugin\views\field\FieldPluginBase

Expanded class hierarchy of LoopCount

File

translators/tmgmt_local/src/Plugin/views/field/LoopCount.php, line 13

Namespace

Drupal\tmgmt_local\Plugin\views\field
View source
class LoopCount extends FieldPluginBase {

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

    /** @var \Drupal\tmgmt_local\LocalTaskInterface $entity */
    $entity = $values->_entity;
    return $entity
      ->getLoopCount();
  }

}

Members