function TipPluginBase::__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);
    }
}

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