You are here

interface MarkdownPluginManagerInterface in Markdown 3.0.x

Hierarchy

Expanded class hierarchy of MarkdownPluginManagerInterface

All classes that implement MarkdownPluginManagerInterface

File

src/MarkdownPluginManagerInterface.php, line 10

Namespace

Drupal\markdown
View source
interface MarkdownPluginManagerInterface extends ContainerAwareInterface, ContainerInjectionInterface, PluginManagerInterface, FallbackPluginManagerInterface {

  /**
   * Retrieves all registered plugins.
   *
   * @param bool $includeBroken
   *   Flag indicating whether to include the "_broken" fallback parser.
   *
   * @return array
   *   An array of plugins instances, keyed by plugin identifier.
   */
  public function all($includeBroken = FALSE) : array;

  /**
   * Retrieves all installed MarkdownParser plugins.
   *
   * @param array $configuration
   *   The configuration used to create plugin instances.
   *
   * @return array
   *   An array of installed plugins instances, keyed by plugin identifier.
   */
  public function getInstalled(array $configuration = []) : array;

  /**
   * Retrieves the labels for parsers.
   *
   * @param bool $installed
   *   Flag indicating whether to return just the installed parsers.
   * @param bool $version
   *   Flag indicating whether to include the version with the label.
   *
   * @return \Drupal\Core\StringTranslation\TranslatableMarkup[]
   *   An array of labels, keyed by parser identifier.
   */
  public function getLabels($installed = TRUE, $version = TRUE) : array;

}

Members

Namesort descending Modifiers Type Description Overrides
ContainerInjectionInterface::create public static function Instantiates a new instance of this class. 75
DiscoveryInterface::getDefinition public function Gets a specific plugin definition. 4
DiscoveryInterface::getDefinitions public function Gets the definition of all plugins for this type. 3
DiscoveryInterface::hasDefinition public function Indicates if a specific plugin definition exists. 1
FactoryInterface::createInstance public function Creates a pre-configured instance of a plugin. 6
FallbackPluginManagerInterface::getFallbackPluginId public function Gets a fallback id for a missing plugin. 5
MapperInterface::getInstance public function Gets a preconfigured instance of a plugin. 3
MarkdownPluginManagerInterface::all public function Retrieves all registered plugins.
MarkdownPluginManagerInterface::getInstalled public function Retrieves all installed MarkdownParser plugins.
MarkdownPluginManagerInterface::getLabels public function Retrieves the labels for parsers.