1 --- src/Checks/Field.php
2 +++ src/Checks/Field.php
3 @@ -86,7 +86,7 @@ class Field extends Check {
4 /** @var TypedDataInterface $property */
5 $value = $property->getValue();
6 if (is_string($value)) {
7 - $field_name = $property->getDataDefinition()->getLabel();
8 + $field_name = $item->getFieldDefinition()->getLabel();
9 foreach ($tags as $vulnerability => $tag) {
10 if (strpos($value, '<' . $tag) !== FALSE) {
11 // Vulnerability found.
12 @@ -138,9 +138,9 @@ class Field extends Check {
15 foreach ($fields as $field => $finding) {
16 - $url = $entity->urlInfo('edit-form');
17 + $url = $entity->toUrl('edit-form')->toString();
19 - $url = $entity->urlInfo();
20 + $url = $entity->toUrl()->toString();
23 '@vulnerabilities found in <em>@field</em> field of <a href=":url">@label</a>',