function photos_access_node_update in Album Photos 8.4
Same name and namespace in other branches
- 8.5 photos_access/photos_access.module \photos_access_node_update()
- 7.3 photos_access/photos_access.module \photos_access_node_update()
- 6.0.x photos_access/photos_access.module \photos_access_node_update()
Implements hook_ENTITY_TYPE_update().
File
- photos_access/
photos_access.module, line 317 - Implementation of photos_access.module.
Code
function photos_access_node_update(NodeInterface $node) {
if (\Drupal::config('photos.settings')
->get('photos_access_' . $node
->getType())) {
photos_access_update_access($node, $node->privacy);
}
}