You are here

public function ACKTestMeowHandler::objectRealms in Access Control Kit 7

Overrides AccessControlKitHandler::objectRealms().

Overrides AccessControlKitHandler::objectRealms

File

tests/ack_test.inc, line 23
Contains a dummy class for testing the access control kit handler API.

Class

ACKTestMeowHandler
Controls access to the fictitious 'cat' and 'dog' object types.

Code

public function objectRealms($object_type, $object) {
  return $object_type == 'cat' ? array(
    TRUE,
  ) : array(
    FALSE,
  );
}