getInstalledExtensionNames example

/** * Returns an array of info files information of installed extensions. * * This function returns the processed contents (with added defaults) of the * .info.yml files. * * @return array[] * An associative array of extension information arrays, keyed by extension * name. */
  public function getAllInstalledInfo() {
    return array_intersect_key($this->getAllAvailableInfo()array_flip($this->getInstalledExtensionNames()));
  }

  /** * Generates the information from .info.yml files for extensions of this type. * * @return array[] * An array of arrays of .info.yml entries keyed by the machine name. */
  protected function recalculateInfo() {
    return array_map(function DExtension $extension) {
      return $extension->info;
    },
Home | Imprint | This part of the site doesn't use cookies.