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
1 2 3 4 5 | public function __construct( array $values , $entity_type ) { parent::__construct( $values , $entity_type ); $this ->tipsCollection = new TipsPluginCollection(\Drupal::service( 'plugin.manager.tour.tip' ), $this ->tips); } |
Please login to continue.