public function tagsChooser(EntityInterface $entity, $attachment)
    {
        if (!TableRegistry::exists($entity->source())) {
            throw new Cake\Network\Exception\MissingTableException('Could not find Table ' . $entity->source());
        }
        $Table = TableRegistry::get($entity->source());

        return $this->Form->select('tags', $Table->getAttachmentsTags(), [
            'type' => 'select',
            'class' => 'tag-chooser',
            'style' => 'display: block; width: 100%',
            'label' => false,
            'multiple' => true,
            'value' => $attachment->tags
        ]);
    }