diff --git a/token.tokens.inc b/token.tokens.inc index 46f3df5..a15f45b 100755 --- a/token.tokens.inc +++ b/token.tokens.inc @@ -803,7 +803,7 @@ function token_tokens($type, array $tokens, array $data = [], array $options = [ $entities = $entity_type_manager->getDefinitions(); if (!isset($entities[$entity_type])) { - continue; + break; } /** @var \Drupal\Core\Entity\EntityInterface $entity */ @@ -815,7 +815,7 @@ function token_tokens($type, array $tokens, array $data = [], array $options = [ } if (!is_object($entity)) { - continue; + break; } // No child properties, so load the entity label.