public function TranslatorManager::supportsFiles

Returns TRUE if at least one translator plugin supports files.

Return value

bool True if files may be sent to a translator.

File

src/TranslatorManager.php, line 76

Class

TranslatorManager
A plugin manager for translator plugins.

Namespace

Drupal\tmgmt

Code

public function supportsFiles() : bool {
  foreach ($this
    ->getDefinitions() as $plugin => $definition) {
    if (!empty($definition['files'])) {
      return TRUE;
    }
  }
  return FALSE;
}