/**
  * @param string $form
  * @return $this
  */
 public function setForm($form)
 {
     $this->translator->setForm($form);
     return $this;
 }
Example #2
0
 /**
  * @param IdentifiableInterface $subject
  * @return array
  */
 protected function fromDictionary(IdentifiableInterface $subject)
 {
     $translations = $this->agency->getRepository()->getTranslations($subject, $this->code);
     return $translations ?: $subject->getMeta();
 }