You are here

public function TreeNode::__construct in Ubercart 8.4

Constructor.

File

uc_catalog/src/TreeNode.php, line 19

Class

TreeNode
Data structure to mimic Drupal's menu system.

Namespace

Drupal\uc_catalog

Code

public function __construct($term = NULL) {
  if ($term) {
    $this->tid = $term->tid;
    $this->name = $term->name;
    $this->depth = $term->depth;
    $this->sequence = $term->sequence;
  }
}