public function ComponentDiscovery::getSubComponents in Lightning Core 8.5
Same name and namespace in other branches
- 8.3 src/ComponentDiscovery.php \Drupal\lightning_core\ComponentDiscovery::getSubComponents()
- 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_coreCode
public function getSubComponents() {
return array_diff_key($this
->getAll(), $this
->getMainComponents());
}