function RefinableCalculatedPermissions::merge
Same name in other branches
- 11.x core/lib/Drupal/Core/Session/RefinableCalculatedPermissions.php \Drupal\Core\Session\RefinableCalculatedPermissions::merge()
Overrides RefinableCalculatedPermissionsInterface::merge
File
-
core/
lib/ Drupal/ Core/ Session/ RefinableCalculatedPermissions.php, line 55
Class
- RefinableCalculatedPermissions
- Represents a calculated set of permissions with cacheable metadata.
Namespace
Drupal\Core\SessionCode
public function merge(CalculatedPermissionsInterface $calculated_permissions) : self {
foreach ($calculated_permissions->getItems() as $item) {
$this->addItem($item);
}
$this->addCacheableDependency($calculated_permissions);
return $this;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.