Pathauto pattern for a content type depending on a reference field? This question is already asked here, but the answer selected does not work for Drupal8.
Description: There is a content-type, which has field, referencing taxonomy term. The term is in &quot;Content class&quot; dictionary. This term is used in views to filter the right content for the view. When a link in the view is clicked, it opens the node. This is OK.
So, it is needed pathauto to generate /Content class term/Content_title_name when this node is opened.
What did not work:  [node:field_content_class:value]/[node:title]. This is not accepted, produces error: Path pattern is using the following invalid tokens: [node:field_content_class:value]
The accepted (by Drupal) pattern:  [node:field_content_class]/[node:title] generates alias, containing only the [node:title] part. The first component is empty.
This is made to not create separate content-types for nodes with the same fields.
EDIT: The accepted answer works on a fresh copy of Drupal with language translation enabled. I continue to investigate the case with my production site.
A taxonomy field is referencing entities, it has no value property. See how to print value of a taxonomy field to headline with node.html.twig?
Converting this to a token pattern:
[node:field_content_class:entity:name]/[node:title]