The Drupal 8 contact module support categories with configuration entity. But this entity does not support language selector.

Related issue: #1935022: Add a language selector on views

Files: 

Comments

nevergone’s picture

Issue summary: View changes

comma deleted

nevergone’s picture

Issue tags: +SprintWeekend2013

Add tag: #SprintWeekend

nevergone’s picture

Issue summary: View changes

related issue

andypost’s picture

larowlan’s picture

Assigned: Unassigned » larowlan

having a go

larowlan’s picture

Assigned: larowlan » Unassigned
Status: Active » Postponed
FileSize
3.18 KB

Without a canonical link to view a message (or to edit it like block content uses) content_translation ignores ContactMessages so doesn't create the required permissions and the test dies.

mgifford’s picture

Why is this postponed? Is there another issue we're waiting on?

andypost’s picture

Status: Postponed » Needs work

Was postponed on #2289063: Change contact message entity to behave more like a normal entity

  1. +++ b/core/modules/contact/src/CategoryForm.php
    @@ -66,6 +66,26 @@ public function form(array $form, array &$form_state) {
    +    if ($this->moduleHandler->moduleExists('content_translation')) {
    

    I think CT should work now

  2. +++ b/core/modules/contact/src/Entity/Message.php
    @@ -23,12 +23,14 @@
    + *     "translation" = "Drupal\comment\CommentTranslationHandler"
    

    comment?!

larowlan’s picture

Is this still an issue?

andypost’s picture

Issue tags: +D8MI, +language-config
+++ b/core/modules/contact/src/Entity/Message.php
@@ -23,12 +23,14 @@
+ *     "translation" = "Drupal\comment\CommentTranslationHandler"

looks strange

andypost’s picture

let's add lancode key at least

Berdir’s picture

Status: Needs work » Closed (duplicate)
Related issues: +#1935022: Add a language selector on views

I forgot about this issue. The language selector actually show up now, the only problem is that it's not configurable, which is fixed by #2533964: Langcode widget visibility settings from language.module are not applied consistently, which also adds the langcode key.