You are here

interface TipPluginInterface in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/tour/src/TipPluginInterface.php \Drupal\tour\TipPluginInterface
  2. 9 core/modules/tour/src/TipPluginInterface.php \Drupal\tour\TipPluginInterface

Defines an interface for tour items.

Hierarchy

Expanded class hierarchy of TipPluginInterface

All classes that implement TipPluginInterface

See also

\Drupal\tour\Annotation\Tip

\Drupal\tour\TipPluginBase

\Drupal\tour\TipPluginManager

Plugin API

File

core/modules/tour/src/TipPluginInterface.php, line 13

Namespace

Drupal\tour
View source
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();

  /**
   * 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);

}

Members