public function getAll() {
    if (is_null($this->components)) {
      $identifier = self::COMPONENT_PREFIX;

      $filter = function (Extension $module) use ($identifier) {
        return strpos($module->getName(), $identifier) === 0;
      };

      $this->components = array_filter($this->discovery->scan('module'), $filter);
    }
    return $this->components;
  }
public function getAll() {
    if (is_null($this->components)) {
      $identifier = self::COMPONENT_PREFIX;

      $filter = function (Extension $module) use ($identifier) {
        return strpos($module->getName(), $identifier) === 0;
      };

      $this->components = array_filter($this->discovery->scan('module'), $filter);
    }
    return $this->components;
  }
public function getAll ( ) { if ( is_null ( $ this -> components ) ) { $ identifier = self :: COMPONENT_PREFIX ; $ filter = function ( Extension $ module ) use ( $ identifier ) { return strpos ( $ module -> getName ( ) , $ identifier ) === 0 ; } ; $ this -> components = array_filter ( $ this -> discovery -> scan ( 'module' ) , $ filter ) ; } return $ this -> components ; }
Returns extension objects for all Lightning components.

@return Extension[]
Array of extension objects for all Lightning components.
Returns extension objects for all Lightning components .