Mercurial > hg > isophonics-drupal-site
view core/modules/tour/src/TipPluginInterface.php @ 13:5fb285c0d0e3
Update Drupal core to 8.4.7 via Composer. Security update; I *think* we've
been lucky to get away with this so far, as we don't support self-registration
which seems to be used by the so-called "drupalgeddon 2" attack that 8.4.5
was vulnerable to.
author | Chris Cannam |
---|---|
date | Mon, 23 Apr 2018 09:33:26 +0100 |
parents | 4c8ae668cc8c |
children |
line wrap: on
line source
<?php namespace Drupal\tour; /** * Defines an interface for tour items. * * @see \Drupal\tour\Annotation\Tip * @see \Drupal\tour\TipPluginBase * @see \Drupal\tour\TipPluginManager * @see plugin_api */ interface TipPluginInterface { /** * Returns id of the tip. * * @return string * The id of the tip. */ public function id(); /** * Returns label of the tip. * * @return string * The label of the tip. */ public function getLabel(); /** * Returns weight of the tip. * * @return string * The weight of the tip. */ public function getWeight(); /** * Returns an array of attributes for the tip wrapper. * * @return array * An array of classes and values. */ public function getAttributes(); /** * Used for returning values by key. * * @var string * Key of the value. * * @return string * Value of the key. */ public function get($key); /** * Used for returning values by key. * * @var string * Key of the value. * * @var string * Value of the key. */ public function set($key, $value); /** * Returns a renderable array. * * @return array * A renderable array. */ public function getOutput(); }