interface MarkdownExtensionInterface in Markdown 3.0.x
Interface ExtensionInterface.
Hierarchy
- interface \Drupal\Component\Plugin\PluginInspectionInterface
- interface \Drupal\markdown\Plugin\Markdown\MarkdownInstallablePluginInterface
- interface \Drupal\markdown\Plugin\Markdown\Extension\MarkdownExtensionInterface
- interface \Drupal\markdown\Plugin\Markdown\MarkdownInstallablePluginInterface
Expanded class hierarchy of MarkdownExtensionInterface
All classes that implement MarkdownExtensionInterface
1 file declares its use of MarkdownExtensionInterface
File
- src/
Plugin/ Markdown/ Extension/ MarkdownExtensionInterface.php, line 12
Namespace
Drupal\markdown\Plugin\Markdown\ExtensionView source
interface MarkdownExtensionInterface extends MarkdownInstallablePluginInterface {
/**
* Retrieves the default settings.
*
* @return array
* The default settings.
*/
public function defaultSettings();
/**
* Retrieves a setting.
*
* @param string $name
* The name of the setting to retrieve.
*
* @return mixed
* The settings value or NULL if not set.
*/
public function getSetting($name);
/**
* Retrieves the current settings.
*
* @return array
* The settings array
*/
public function getSettings();
/**
* Indicates whether the extension is being used.
*
* @return bool
* TRUE or FALSE
*/
public function isEnabled();
/**
* Sets a specific setting.
*
* @param string $name
* The name of the setting to set.
* @param mixed $value
* (optional) The value to set. If not provided it will be removed.
*/
public function setSetting($name, $value = NULL);
/**
* Provides settings to an extension.
*
* @param array $settings
* The settings array.
*/
public function setSettings(array $settings = []);
/**
* Returns the configuration form elements specific to this plugin.
*
* @param array $element
* The element render array for the extension configuration form.
* @param \Drupal\Core\Form\FormStateInterface $formState
* The current state of the form.
* @param \Drupal\markdown\Plugin\Filter\MarkdownFilterInterface $filter
* The filter this form belongs to.
*
* @return array
* The renderable form array representing the entire configuration form.
*/
public function settingsForm(array $element, FormStateInterface $formState, MarkdownFilterInterface $filter);
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
MarkdownExtensionInterface:: |
public | function | Retrieves the default settings. | 1 |
MarkdownExtensionInterface:: |
public | function | Retrieves a setting. | 1 |
MarkdownExtensionInterface:: |
public | function | Retrieves the current settings. | 1 |
MarkdownExtensionInterface:: |
public | function | Indicates whether the extension is being used. | 1 |
MarkdownExtensionInterface:: |
public | function | Sets a specific setting. | 1 |
MarkdownExtensionInterface:: |
public | function | Provides settings to an extension. | 1 |
MarkdownExtensionInterface:: |
public | function | Returns the configuration form elements specific to this plugin. | 1 |
MarkdownInstallablePluginInterface:: |
public | function | Retrieves the description of the plugin, if set. | 2 |
MarkdownInstallablePluginInterface:: |
public | function | Displays the human-readable label of the plugin. | 2 |
MarkdownInstallablePluginInterface:: |
public | function | Retrieves the URL of the plugin, if set. | 2 |
MarkdownInstallablePluginInterface:: |
public | function | The current version of the parser. | 2 |
MarkdownInstallablePluginInterface:: |
public static | function | Indicates whether the parser is installed. | 2 |
MarkdownInstallablePluginInterface:: |
public | function | Indicates whether the parser is installed. | 2 |
MarkdownInstallablePluginInterface:: |
public static | function | Retrieves the version of the installed parser. | 2 |
PluginInspectionInterface:: |
public | function | Gets the definition of the plugin implementation. | 4 |
PluginInspectionInterface:: |
public | function | Gets the plugin_id of the plugin instance. | 2 |