comparison core/modules/content_moderation/src/Access/LatestRevisionCheck.php @ 4:a9cd425dd02b

Update, including to Drupal core 8.6.10
author Chris Cannam
date Thu, 28 Feb 2019 13:11:55 +0000
parents c75dbcec494b
children
comparison
equal deleted inserted replaced
3:307d7a7fd348 4:a9cd425dd02b
66 } 66 }
67 67
68 return $access_result->addCacheableDependency($entity); 68 return $access_result->addCacheableDependency($entity);
69 } 69 }
70 70
71 return AccessResult::forbidden()->addCacheableDependency($entity); 71 return AccessResult::forbidden('No pending revision for moderated entity.')->addCacheableDependency($entity);
72 } 72 }
73 73
74 /** 74 /**
75 * Returns the default revision of the entity this route is for. 75 * Returns the default revision of the entity this route is for.
76 * 76 *