You are here

interface MarkdownInstallablePluginInterface in Markdown 3.0.x

Hierarchy

Expanded class hierarchy of MarkdownInstallablePluginInterface

All classes that implement MarkdownInstallablePluginInterface

2 files declare their use of MarkdownInstallablePluginInterface
BaseMarkdownPluginManager.php in src/BaseMarkdownPluginManager.php
MarkdownExtensionInterface.php in src/Plugin/Markdown/Extension/MarkdownExtensionInterface.php

File

src/Plugin/Markdown/MarkdownInstallablePluginInterface.php, line 7

Namespace

Drupal\markdown\Plugin\Markdown
View source
interface MarkdownInstallablePluginInterface extends PluginInspectionInterface {

  /**
   * Indicates whether the parser is installed.
   *
   * @return bool
   */
  public static function installed() : bool;

  /**
   * Retrieves the version of the installed parser.
   *
   * @return string|null
   */
  public static function version();

  /**
   * Retrieves the description of the plugin, if set.
   *
   * @return \Drupal\Core\StringTranslation\TranslatableMarkup
   *   The description.
   */
  public function getDescription();

  /**
   * Displays the human-readable label of the plugin.
   *
   * @param bool $version
   *   Flag indicating whether to show the version with the label.
   *
   * @return \Drupal\Core\StringTranslation\TranslatableMarkup
   *   The label.
   */
  public function getLabel($version = TRUE);

  /**
   * Retrieves the URL of the plugin, if set.
   *
   * @return \Drupal\Core\Url|null
   */
  public function getUrl();

  /**
   * The current version of the parser.
   *
   * @return string|null
   *   The parser version.
   */
  public function getVersion();

  /**
   * Indicates whether the parser is installed.
   *
   * @return bool
   */
  public function isInstalled() : bool;

}

Members

Namesort descending Modifiers Type Description Overrides
MarkdownInstallablePluginInterface::getDescription public function Retrieves the description of the plugin, if set. 2
MarkdownInstallablePluginInterface::getLabel public function Displays the human-readable label of the plugin. 2
MarkdownInstallablePluginInterface::getUrl public function Retrieves the URL of the plugin, if set. 2
MarkdownInstallablePluginInterface::getVersion public function The current version of the parser. 2
MarkdownInstallablePluginInterface::installed public static function Indicates whether the parser is installed. 2
MarkdownInstallablePluginInterface::isInstalled public function Indicates whether the parser is installed. 2
MarkdownInstallablePluginInterface::version public static function Retrieves the version of the installed parser. 2
PluginInspectionInterface::getPluginDefinition public function Gets the definition of the plugin implementation. 4
PluginInspectionInterface::getPluginId public function Gets the plugin_id of the plugin instance. 2