Returns a bundle and optionally its descendants by its name.
@api
string $name Bundle name:
Boolean $first Whether to return the first bundle only or together with its descendants:
BundleInterface|Array A BundleInterface instance or an array of BundleInterface instances if $first is false
\InvalidArgumentException when the bundle is not enabled
public function getBundle($name, $first = true);