function Tour::__construct

Same name and namespace in other branches
  1. 8.9.x core/modules/tour/src/Entity/Tour.php \Drupal\tour\Entity\Tour::__construct()
  2. 10 core/modules/tour/src/Entity/Tour.php \Drupal\tour\Entity\Tour::__construct()
  3. 11.x core/modules/tour/src/Entity/Tour.php \Drupal\tour\Entity\Tour::__construct()

Overrides ConfigEntityBase::__construct

File

core/modules/tour/src/Entity/Tour.php, line 97

Class

Tour
Defines the configured tour entity.

Namespace

Drupal\tour\Entity

Code

public function __construct(array $values, $entity_type) {
    parent::__construct($values, $entity_type);
    $this->tipsCollection = new TipsPluginCollection(\Drupal::service('plugin.manager.tour.tip'), $this->tips);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.