protected function _getNodeId($class, $identifier)
{
$node = $this->Acl->{$class}->node($identifier);
if (empty($node) || $node->count() === 0) {
if (is_array($identifier)) {
$identifier = var_export($identifier, true);
}
$this->error(__d('cake_acl', 'Could not find node using reference "{0}"', [$identifier]));
return null;
}
return $node->first()->id;
}