Commit cbdfc05f authored by anon's avatar anon

by anon: Removed throw exception from linkit_filter.

parent cc3edc53
......@@ -6,7 +6,6 @@ use Drupal\Component\Utility\Html;
use Drupal\Core\Entity\EntityRepositoryInterface;
use Drupal\Core\Form\FormStateInterface;
use Drupal\Core\Plugin\ContainerFactoryPluginInterface;
use Drupal\entity_embed\Exception\EntityNotFoundException;
use Drupal\filter\FilterProcessResult;
use Drupal\filter\Plugin\FilterBase;
use Symfony\Component\DependencyInjection\ContainerInterface;
......@@ -119,9 +118,6 @@ class LinkitFilter extends FilterBase implements ContainerFactoryPluginInterface
// - the linked entity (whose URL and title may change)
->addCacheableDependency($entity);
}
else {
throw new EntityNotFoundException(sprintf('Unable to load entity %s %s.', $entity_type, $uuid));
}
}
catch (\Exception $e) {
watchdog_exception('linkit_filter', $e);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment