Mercurial > hg > isophonics-drupal-site
comparison core/lib/Drupal/Core/Entity/Entity.php @ 16:c2387f117808
Routine composer update
author | Chris Cannam |
---|---|
date | Tue, 10 Jul 2018 15:07:59 +0100 |
parents | 1fec387a4317 |
children | 129ea1e6d783 |
comparison
equal
deleted
inserted
replaced
15:e200cb7efeb3 | 16:c2387f117808 |
---|---|
11 use Drupal\Core\Language\Language; | 11 use Drupal\Core\Language\Language; |
12 use Drupal\Core\Language\LanguageInterface; | 12 use Drupal\Core\Language\LanguageInterface; |
13 use Drupal\Core\Link; | 13 use Drupal\Core\Link; |
14 use Drupal\Core\Session\AccountInterface; | 14 use Drupal\Core\Session\AccountInterface; |
15 use Drupal\Core\Url; | 15 use Drupal\Core\Url; |
16 use Symfony\Component\Routing\Exception\MissingMandatoryParametersException; | |
16 use Symfony\Component\Routing\Exception\RouteNotFoundException; | 17 use Symfony\Component\Routing\Exception\RouteNotFoundException; |
17 | 18 |
18 /** | 19 /** |
19 * Defines a base entity class. | 20 * Defines a base entity class. |
20 */ | 21 */ |
340 // relationships. | 341 // relationships. |
341 try { | 342 try { |
342 $this->toUrl($link_relation_type)->toString(TRUE)->getGeneratedUrl(); | 343 $this->toUrl($link_relation_type)->toString(TRUE)->getGeneratedUrl(); |
343 } | 344 } |
344 catch (RouteNotFoundException $e) { | 345 catch (RouteNotFoundException $e) { |
346 return FALSE; | |
347 } | |
348 catch (MissingMandatoryParametersException $e) { | |
345 return FALSE; | 349 return FALSE; |
346 } | 350 } |
347 return TRUE; | 351 return TRUE; |
348 }); | 352 }); |
349 } | 353 } |