You are here

protected function FlagNonGlobalCookieStorage::index_of in Flag 7.3

Same name and namespace in other branches
  1. 6.2 flag.inc \FlagNonGlobalCookieStorage::index_of()
  2. 7.2 flag.inc \FlagNonGlobalCookieStorage::index_of()
2 calls to FlagNonGlobalCookieStorage::index_of()
FlagNonGlobalCookieStorage::is_flagged in includes/flag.cookie_storage.inc
FlagNonGlobalCookieStorage::unflag in includes/flag.cookie_storage.inc
"Unflags" an item.

File

includes/flag.cookie_storage.inc, line 157
Contains the FlagCookieStorage class.

Class

FlagNonGlobalCookieStorage
Storage handler for non-global flags.

Code

protected function index_of($entity_id) {
  return array_search($this
    ->cookie_key($entity_id), $this->flaggings);
}