public function TipsBag::__construct

Constructs a TipsBag object.

Parameters

\Drupal\Component\Plugin\PluginManagerInterface $manager: The manager to be used for instantiating plugins.

array $configurations: (optional) An associative array containing the initial configuration for each tour in the bag, keyed by plugin instance ID.

File

drupal/core/modules/tour/lib/Drupal/tour/TipsBag.php, line 45
Contains \Drupal\tour\TipsBag.

Class

TipsBag
A collection of tips.

Namespace

Drupal\tour

Code

public function __construct(PluginManagerInterface $manager, array $configurations = array()) {
  $this->manager = $manager;
  $this->configurations = $configurations;
  if (!empty($configurations)) {
    $this->instanceIDs = array_combine(array_keys($configurations), array_keys($configurations));
  }
}