You are here

public function Translator::hasCustomSettingsHandling in Translation Management Tool 8

Determines if job settings of the translator will be handled by its plugin.

Return value

bool If job settings are to be handled by the plugin.

Overrides TranslatorInterface::hasCustomSettingsHandling

File

src/Entity/Translator.php, line 492

Class

Translator
Entity class for the tmgmt_translator entity.

Namespace

Drupal\tmgmt\Entity

Code

public function hasCustomSettingsHandling() {
  $definition = \Drupal::service('plugin.manager.tmgmt.translator')
    ->getDefinition($this
    ->getPluginId());
  if (isset($definition['job_settings_custom_handling'])) {
    return $definition['job_settings_custom_handling'];
  }
  return FALSE;
}