TipsPluginCollection example


  protected $tips = [];

  /** * {@inheritdoc} */
  public function __construct(array $values$entity_type) {
    parent::__construct($values$entity_type);

    $this->tipsCollection = new TipsPluginCollection(\Drupal::service('plugin.manager.tour.tip')$this->tips);
  }

  /** * {@inheritdoc} */
  public function getRoutes() {
    return $this->routes;
  }

  /** * {@inheritdoc} */
Home | Imprint | This part of the site doesn't use cookies.