Hi,

I am trying out Linkit for Drupal 8 (A clean install of 8.0.0 without any other modules) & I found an issue when selecting a Content matcher, I received the following error:

Notice: Undefined index: description in Drupal\linkit\Plugin\Linkit\Matcher\EntityMatcher->insertTokenList() (line 38 of modules/contrib/linkit/src/MatcherTokensTrait.php).

After debugging the code I noticed the following token values do not have a description:

  • Content Type.
  • Title
  • Date Created.
  • Author.

Due to this I have created a patch, which checks to see if there is a description first.

Thank you,

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

i_g_wright created an issue. See original summary.

i_g_wright’s picture

  • anon committed 8d3f85b on 8.x-4.x authored by i_g_wright
    Issue #2626442 by i_g_wright: Error - token description missing on...
anon’s picture

Status: Needs review » Fixed

Thanks for the patch, good work.

I have committed this now.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

Status: Closed (fixed) » Needs work

The last submitted patch, 2: token_description_missing-2626442-1.patch, failed testing.

anon’s picture

Status: Needs work » Closed (fixed)