protected function getProfile() {
    if (empty($this->profile)) {
      $profiles = $this->discovery->scan('profile');

      if (empty($profiles['lightning'])) {
        throw new \RuntimeException('Lightning profile not found.');
      }
      $this->profile = $profiles['lightning'];
    }
    return $this->profile;
  }
protected function getProfile() {
    if (empty($this->profile)) {
      $profiles = $this->discovery->scan('profile');

      if (empty($profiles['lightning'])) {
        throw new \RuntimeException('Lightning profile not found.');
      }
      $this->profile = $profiles['lightning'];
    }
    return $this->profile;
  }
protected function getProfile ( ) { if ( empty ( $ this -> profile ) ) { $ profiles = $ this -> discovery -> scan ( 'profile' ) ; if ( empty ( $ profiles [ 'lightning' ] ) ) { throw new \ RuntimeException ( 'Lightning profile not found.' ) ; } $ this -> profile = $ profiles [ 'lightning' ] ; } return $ this -> profile ; }
Returns an extension object for the Lightning profile.

@return \Drupal\Core\Extension\Extension
The Lightning profile extension object.

@throws \RuntimeException
If the Lightning profile is not found in the system.
Returns an extension object for the Lightning profile .