You are here

EnabledPluginInterface.php in Markdown 8.2

File

src/Plugin/Markdown/EnabledPluginInterface.php
View source
<?php

namespace Drupal\markdown\Plugin\Markdown;


/**
 * Interface for plugins with an "enabled" state.
 *
 * @todo Move upstream to https://www.drupal.org/project/installable_plugins.
 */
interface EnabledPluginInterface extends InstallablePluginInterface {

  /**
   * Indicates the default "enabled" state.
   *
   * The plugin will default to this value when not overridden by passed
   * configuration.
   *
   * @return bool
   *   TRUE or FALSE
   */
  public function enabledByDefault();

  /**
   * Indicates whether the plugin is enabled.
   *
   * @return bool
   *   TRUE or FALSE
   */
  public function isEnabled();

}

Interfaces

Namesort descending Description
EnabledPluginInterface Interface for plugins with an "enabled" state.