public function Job::hasTranslator

Checks if the translator and the plugin exist.

Return value

bool TRUE if exists, FALSE otherwise.

Overrides JobInterface::hasTranslator

3 calls to Job::hasTranslator()
Job::getSetting in src/Entity/Job.php
Retrieves a setting value from the job settings.
Job::getTranslator in src/Entity/Job.php
Returns the translator for this job.
Job::getTranslatorLabel in src/Entity/Job.php
Returns the label of the translator for this job.

File

src/Entity/Job.php, line 541

Class

Job
Entity class for the tmgmt_job entity.

Namespace

Drupal\tmgmt\Entity

Code

public function hasTranslator() {
  return $this->translator->entity && $this->translator->target_id && $this->translator->entity
    ->hasPlugin();
}