/** * {@inheritdoc} */ public function getLibrariesByExtension($extension) { if (!isset($this->libraryDefinitions[$extension])) { $libraries = $this->collector->get($extension); $this->libraryDefinitions[$extension] = []; foreach ($libraries as $name => $definition) { $this->libraryDefinitions[$extension][$name] = $definition; } } return $this->libraryDefinitions[$extension]; }
/** * {@inheritdoc} */ public function getLibrariesByExtension($extension) { if (!isset($this->libraryDefinitions[$extension])) { $libraries = $this->collector->get($extension); $this->libraryDefinitions[$extension] = []; foreach ($libraries as $name => $definition) { // Allow modules and themes to dynamically attach request and context // specific data for this library; e.g., localization. $library_name = "{$extension}/{$name}"; $this->moduleHandler->alter('library', $definition, $library_name); $this->libraryDefinitions[$extension][$name] = $definition; } } return $this->libraryDefinitions[$extension]; }
/** * {@inheritdoc} */ public function getLibrariesByExtension($extension) { return $this->collector->get($extension); }