public function Tour::__construct

Overrides \Drupal\Core\Config\Entity\ConfigEntityBase::__construct();

Overrides ConfigEntityBase::__construct

File

drupal/core/modules/tour/lib/Drupal/tour/Plugin/Core/Entity/Tour.php, line 82
Contains \Drupal\tour\Plugin\Core\Entity\Tour.

Class

Tour
Defines the configured tour entity.

Namespace

Drupal\tour\Plugin\Core\Entity

Code

public function __construct(array $values, $entity_type) {
  parent::__construct($values, $entity_type);
  $this->tipsBag = new TipsBag(drupal_container()
    ->get('plugin.manager.tour.tip'), $this->tips);
}