original_string: protected static function discoverExtensionComponents($extensionKey)
      {
          // Test if the extension contains a component directory
          $extCompRootDirectory = ExtensionManagementUtility::extPath($extensionKey, 'Components');
  
          return is_dir($extCompRootDirectory) ? self::discoverExtensionComponentDirectory($extCompRootDirectory) : [];
      }
code: protected static function discoverExtensionComponents($extensionKey)
      {
          // Test if the extension contains a component directory
          $extCompRootDirectory = ExtensionManagementUtility::extPath($extensionKey, 'Components');
  
          return is_dir($extCompRootDirectory) ? self::discoverExtensionComponentDirectory($extCompRootDirectory) : [];
      }
code_tokens: protected static function discoverExtensionComponents ( $ extensionKey ) { // Test if the extension contains a component directory $ extCompRootDirectory = ExtensionManagementUtility :: extPath ( $ extensionKey , 'Components' ) ; return is_dir ( $ extCompRootDirectory ) ? self :: discoverExtensionComponentDirectory ( $ extCompRootDirectory ) : [ ] ; }
docstring: Discover the components of a single extension
  
  @param $extensionKey
docstring_tokens: Discover the components of a single extension