Verified Commit 52604be5 authored by Lee Rowlands's avatar Lee Rowlands
Browse files

Issue #2822575 by martin107, lucassc, pooja saraah, Shubham Chandra,...

Issue #2822575 by martin107, lucassc, pooja saraah, Shubham Chandra, rodrigoaguilera, smustgrave, larowlan: LibraryDiscoveryParser::buildByExtension() is missing @throws tags

(cherry picked from commit 5c85e6d4)
parent 0e782309
Loading
Loading
Loading
Loading
+12 −0
Original line number Diff line number Diff line
@@ -107,6 +107,18 @@ public function __construct($root, ModuleHandlerInterface $module_handler, Theme
   *   Thrown when a library has no js/css/setting.
   * @throws \UnexpectedValueException
   *   Thrown when a js file defines a positive weight.
   * @throws \UnknownExtensionTypeException
   *   Thrown when the extension type is unknown.
   * @throws \UnknownExtensionException
   *   Thrown when the extension is unknown.
   * @throws \InvalidLibraryFileException
   *   Thrown when the library file is invalid.
   * @throws \InvalidLibrariesOverrideSpecificationException
   *   Thrown when a definition refers to a non-existent library.
   * @throws \Drupal\Core\Asset\Exception\LibraryDefinitionMissingLicenseException
   *   Thrown when a library definition has no license information.
   * @throws \LogicException
   *   Thrown when a header key in a library definition is invalid.
   */
  public function buildByExtension($extension) {
    if ($extension === 'core') {