You are here

interface WebformLibrariesManagerInterface in Webform 8.5

Same name and namespace in other branches
  1. 6.x src/WebformLibrariesManagerInterface.php \Drupal\webform\WebformLibrariesManagerInterface

Defines an interface for libraries classes.

Hierarchy

Expanded class hierarchy of WebformLibrariesManagerInterface

All classes that implement WebformLibrariesManagerInterface

6 files declare their use of WebformLibrariesManagerInterface
WebformAdminConfigElementsForm.php in src/Form/AdminConfig/WebformAdminConfigElementsForm.php
WebformAdminConfigLibrariesForm.php in src/Form/AdminConfig/WebformAdminConfigLibrariesForm.php
WebformEditorialController.php in modules/webform_editorial/src/Controller/WebformEditorialController.php
WebformElementBase.php in src/Plugin/WebformElementBase.php
WebformManagedFileBase.php in src/Plugin/WebformElement/WebformManagedFileBase.php

... See full list

File

src/WebformLibrariesManagerInterface.php, line 8

Namespace

Drupal\webform
View source
interface WebformLibrariesManagerInterface {

  /**
   * Get third party libraries status for hook_requirements and drush.
   *
   * @return array
   *   An associative array of third party libraries keyed by library name.
   */
  public function requirements();

  /**
   * Get library information.
   *
   * @param string $name
   *   The name of the library.
   *
   * @return array
   *   An associative array containing an library.
   */
  public function getLibrary($name);

  /**
   * Get libraries.
   *
   * @param bool|null $included
   *   Optionally filter by include (TRUE) or excluded (FALSE)
   *
   * @return array
   *   An associative array of libraries.
   */
  public function getLibraries($included = NULL);

  /**
   * Get excluded libraries.
   *
   * @return array
   *   A keyed array of excluded libraries.
   */
  public function getExcludedLibraries();

  /**
   * Determine if library is excluded.
   *
   * @param string $name
   *   The name of the library.
   *
   * @return bool
   *   TRUE if library is excluded.
   */
  public function isExcluded($name);

  /**
   * Determine if library is included.
   *
   * @param string $name
   *   The name of the library.
   *
   * @return bool
   *   TRUE if library is included.
   */
  public function isIncluded($name);

}

Members

Namesort descending Modifiers Type Description Overrides
WebformLibrariesManagerInterface::getExcludedLibraries public function Get excluded libraries. 1
WebformLibrariesManagerInterface::getLibraries public function Get libraries. 1
WebformLibrariesManagerInterface::getLibrary public function Get library information. 1
WebformLibrariesManagerInterface::isExcluded public function Determine if library is excluded. 1
WebformLibrariesManagerInterface::isIncluded public function Determine if library is included. 1
WebformLibrariesManagerInterface::requirements public function Get third party libraries status for hook_requirements and drush. 1