You are here

public function TipPluginBase::__construct in Drupal 9

Constructs a \Drupal\Component\Plugin\PluginBase object.

Parameters

array $configuration: A configuration array containing information about the plugin instance.

string $plugin_id: The plugin_id for the plugin instance.

mixed $plugin_definition: The plugin implementation definition.

Overrides PluginBase::__construct

4 calls to TipPluginBase::__construct()
TipPluginImage::__construct in core/modules/tour/tests/tour_test/src/Plugin/tour/tip/TipPluginImage.php
Constructs a \Drupal\tour\Plugin\tour\tip\TipPluginText object.
TipPluginImageLegacy::__construct in core/modules/tour/tests/tour_test/src/Plugin/tour/tip/TipPluginImageLegacy.php
Constructs a TipPluginImageLegacy object.
TipPluginText::__construct in core/modules/tour/src/Plugin/tour/tip/TipPluginText.php
Constructs a \Drupal\tour\Plugin\tour\tip\TipPluginText object.
TipPluginTextLegacy::__construct in core/modules/tour/tests/tour_test/src/Plugin/tour/tip/TipPluginTextLegacy.php
Constructs a TipPluginTextLegacy object.
4 methods override TipPluginBase::__construct()
TipPluginImage::__construct in core/modules/tour/tests/tour_test/src/Plugin/tour/tip/TipPluginImage.php
Constructs a \Drupal\tour\Plugin\tour\tip\TipPluginText object.
TipPluginImageLegacy::__construct in core/modules/tour/tests/tour_test/src/Plugin/tour/tip/TipPluginImageLegacy.php
Constructs a TipPluginImageLegacy object.
TipPluginText::__construct in core/modules/tour/src/Plugin/tour/tip/TipPluginText.php
Constructs a \Drupal\tour\Plugin\tour\tip\TipPluginText object.
TipPluginTextLegacy::__construct in core/modules/tour/tests/tour_test/src/Plugin/tour/tip/TipPluginTextLegacy.php
Constructs a TipPluginTextLegacy 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);
  }
}