public function ComponentDiscovery::getSubComponents in Lightning Core 8.3
Same name and namespace in other branches
- 8.5 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
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());
}