function TipPluginBase::__construct

1 method overrides TipPluginBase::__construct()
TipPluginImageLegacy::__construct in core/modules/tour/tests/tour_test/src/Plugin/tour/tip/TipPluginImageLegacy.php
Constructs a TipPluginImageLegacy object.

File

core/modules/tour/src/TipPluginBase.php, line 46

Class

TipPluginBase
Defines a base tour item implementation.

Namespace

Drupal\tour

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  if (!$this instanceof TourTipPluginInterface) {
    @trigger_error('Implementing ' . __NAMESPACE__ . '\\TipPluginInterface without also implementing ' . __NAMESPACE__ . '\\TourTipPluginInterface is deprecated in drupal:9.2.0. See https://www.drupal.org/node/3204096', E_USER_DEPRECATED);
  }
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.