Tour::__construct

public Tour::__construct(array $values, $entity_type)

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 88

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);
}
doc_Drupal
2016-10-29 09:48:49
Comments
Leave a Comment

Please login to continue.