public function Tour::__construct in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/tour/src/Entity/Tour.php \Drupal\tour\Entity\Tour::__construct()
Constructs an Entity object.
Parameters
array $values: An array of values to set, keyed by property name. If the entity type has bundles, the bundle key has to be specified.
string $entity_type: The type of the entity to create.
Overrides ConfigEntityBase::__construct
File
- core/
modules/ tour/ src/ Entity/ Tour.php, line 93 - Contains \Drupal\tour\Entity\Tour.
Class
- Tour
- Defines the configured tour entity.
Namespace
Drupal\tour\EntityCode
public function __construct(array $values, $entity_type) {
parent::__construct($values, $entity_type);
$this->tipsCollection = new TipsPluginCollection(\Drupal::service('plugin.manager.tour.tip'), $this->tips);
}