class TagsCount

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

Plugin annotation

@ViewsField("tmgmt_tagscount");

Hierarchy

  • class \Drupal\tmgmt\Plugin\views\field\StatisticsBase extends \Drupal\views\Plugin\views\field\FieldPluginBase
    • class \Drupal\tmgmt\Plugin\views\field\TagsCount

Expanded class hierarchy of TagsCount

File

src/Plugin/views/field/TagsCount.php, line 12

Namespace

Drupal\tmgmt\Plugin\views\field
View source
class TagsCount extends StatisticsBase {

  /**
   * {@inheritdoc}
   */
  public function render(ResultRow $values) {
    $entity = $this
      ->getEntity($values);
    return $entity
      ->getTagsCount();
  }

}

Members

Namesort descending Modifiers Type Description Overrides
StatisticsBase::preRender public function Prefetch statistics for all jobs.
TagsCount::render public function