You are here

public function ComponentDiscovery::getSubComponents in Lightning Core 8.5

Same name and namespace in other branches
  1. 8.3 src/ComponentDiscovery.php \Drupal\lightning_core\ComponentDiscovery::getSubComponents()
  2. 8.4 src/ComponentDiscovery.php \Drupal\lightning_core\ComponentDiscovery::getSubComponents()

Returns extension object for all Lightning sub-components.

Return value

\Drupal\Core\Extension\Extension[] Array of extension objects for Lightning sub-components.

File

src/ComponentDiscovery.php, line 118

Class

ComponentDiscovery
Helper object to locate Lightning components and sub-components.

Namespace

Drupal\lightning_core

Code

public function getSubComponents() {
  return array_diff_key($this
    ->getAll(), $this
    ->getMainComponents());
}