comparison core/lib/Drupal/Core/Access/AccessResult.php @ 17:129ea1e6d783

Update, including to Drupal core 8.6.10
author Chris Cannam
date Thu, 28 Feb 2019 13:21:36 +0000
parents c2387f117808
children
comparison
equal deleted inserted replaced
16:c2387f117808 17:129ea1e6d783
424 } 424 }
425 425
426 /** 426 /**
427 * Inherits the cacheability of the other access result, if any. 427 * Inherits the cacheability of the other access result, if any.
428 * 428 *
429 * inheritCacheability() differs from addCacheableDependency() in how it 429 * This method differs from addCacheableDependency() in how it handles
430 * handles max-age, because it is designed to inherit the cacheability of the 430 * max-age, because it is designed to inherit the cacheability of the second
431 * second operand in the andIf() and orIf() operations. There, the situation 431 * operand in the andIf() and orIf() operations. There, the situation
432 * "allowed, max-age=0 OR allowed, max-age=1000" needs to yield max-age 1000 432 * "allowed, max-age=0 OR allowed, max-age=1000" needs to yield max-age 1000
433 * as the end result. 433 * as the end result.
434 * 434 *
435 * @param \Drupal\Core\Access\AccessResultInterface $other 435 * @param \Drupal\Core\Access\AccessResultInterface $other
436 * The other access result, whose cacheability (if any) to inherit. 436 * The other access result, whose cacheability (if any) to inherit.