class ACKNodeSticky in Access Control Kit 7
Controls access to a node based on its "sticky" property.
Hierarchy
- class \AccessControlKitHandler implements AccessControlKitHandlerInterface
- class \ACKNodeSticky
Expanded class hierarchy of ACKNodeSticky
1 string reference to 'ACKNodeSticky'
- AckNodeAccessTest::testStickyAccess in ack_node/
ack_node.test - Test controlling access by stickiness.
File
- ack_node/
handlers/ ack_node_sticky.inc, line 11 - Contains the handler class for the "sticky" flag on nodes.
View source
class ACKNodeSticky extends AccessControlKitHandler {
/**
* Overrides AccessControlKitHandler::description().
*/
public function description() {
return t('Access will be based on whether or not the content is sticky.');
}
/**
* Overrides AccessControlKitHandler::objectRealms().
*/
public function objectRealms($object_type, $node) {
return array(
$node->sticky,
);
}
}