/** * @param Field|FieldText $entity * @param array $options * * @return array */ public function getTemplateOptions($entity, array $options) { return ['url' => $entity->getText(), 'text' => $entity->getText(), 'new_tab' => $options['new_tab'], 'follow' => $options['follow']]; }
/** * @param Field|FieldText $entity * @param array $options * * @return array */ public function getTemplateOptions($entity, array $options) { return ['value' => $entity->getText()]; }