You are here

UpdateDepth.php in Taxonomy Term Depth 8

Same filename and directory in other branches
  1. 8.2 src/Plugin/QueueWorker/UpdateDepth.php

File

src/Plugin/QueueWorker/UpdateDepth.php
View source
<?php

namespace Drupal\taxonomy_term_depth\Plugin\QueueWorker;

use Drupal\aggregator\FeedInterface;
use Drupal\Core\Queue\QueueWorkerBase;

/**
 * Updates a feed's items.
 *
 * @QueueWorker(
 *   id = "taxonomy_term_depth_update_depth",
 *   title = @Translation("Taxonomy term depth update"),
 *   cron = {"time" = 300}
 * )
 */
class UpdateDepth extends QueueWorkerBase {

  /**
   * {@inheritdoc}
   */
  public function processItem($data) {
    taxonomy_term_depth_get_by_tid($data['tid'], TRUE);
  }

}

Classes

Namesort descending Description
UpdateDepth Updates a feed's items.