Issue #3386313 by kksandr: Fixed access check in entity label formatter
2 unresolved threads
Closes #3386313
Merge request reports
Activity
added 1 commit
added 1 commit
- Resolved by kksandr
added 245 commits
-
8573c94f...f5012758 - 243 commits from branch
project:11.x
- 9e5dd781 - Issue #3386313 by kksandr: Fixed access check in entity label formatter
- 468d37f2 - Improve code flow
-
8573c94f...f5012758 - 243 commits from branch
added 1 commit
- fc9dabdc - Remove the link template check to keep support of uri callbacks
74 77 // entity type doesn't have a link template nor a valid 75 78 // "uri_callback", so don't bother trying to output a link for the 76 79 // rest of the referenced entities. 77 $output_as_link = FALSE; 78 } 80 $elements[$delta]['#plain_text'] = $label; 81 $cacheability->applyTo($elements[$delta]); 82 continue; 79 83 } 80 84 81 if ($output_as_link && isset($uri) && !$entity->isNew()) { 85 $uri_access = $uri->access(return_as_object: TRUE); 86 $cacheability->addCacheableDependency($uri_access); 87 if ($uri_access->isAllowed()) { 82 88 $elements[$delta] = [ changed this line in version 7 of the diff
61 62 $output_as_link = $this->getSetting('link'); 62 63 63 64 foreach ($this->getEntitiesToView($items, $langcode) as $delta => $entity) { 65 $elements[$delta] = ['#entity' => $entity]; 64 66 $label = $entity->label(); 67 $cacheability = (new CacheableMetadata())->addCacheTags($entity->getCacheTags()); changed this line in version 9 of the diff
added 1 commit
- 722ea431 - Use CacheableMetadata::createFromObject($entity) instead
Please register or sign in to reply