function TipPluginImageLegacy::create

Same name in other branches
  1. 9 core/modules/tour/tests/tour_test/src/Plugin/tour/tip/TipPluginImageLegacy.php \Drupal\tour_test\Plugin\tour\tip\TipPluginImageLegacy::create()
  2. 10 core/modules/tour/tests/tour_test/src/Plugin/tour/tip/TipPluginImageLegacy.php \Drupal\tour_test\Plugin\tour\tip\TipPluginImageLegacy::create()

Overrides ContainerFactoryPluginInterface::create

File

core/modules/tour/tests/tour_test/src/Plugin/tour/tip/TipPluginImageLegacy.php, line 64

Class

TipPluginImageLegacy
Displays an image as a tip.

Namespace

Drupal\tour_test\Plugin\tour\tip

Code

public static function create(ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition) {
    return new static($configuration, $plugin_id, $plugin_definition, $container->get('token'));
}

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