protected function _calculateItemId(EntityInterface $item)
    {
        if ($item->has('id')) {
            return $item->id;
        }

        if (is_array($item->url)) {
            return Inflector::slug(strtolower(implode(' ', array_values($item->url))));
        }

        return Inflector::slug(strtolower($item->url));
    }
protected function _calculateItemId(EntityInterface $item)
    {
        if ($item->has('id')) {
            return $item->id;
        }

        if (is_array($item->url)) {
            return Inflector::slug(strtolower(implode(' ', array_values($item->url))));
        }

        return Inflector::slug(strtolower($item->url));
    }
protected function _calculateItemId ( EntityInterface $ item ) { if ( $ item -> has ( 'id' ) ) { return $ item -> id ; } if ( is_array ( $ item -> url ) ) { return Inflector :: slug ( strtolower ( implode ( ' ' , array_values ( $ item -> url ) ) ) ) ; } return Inflector :: slug ( strtolower ( $ item -> url ) ) ; }
Calculates an item's ID

@param \Cake\Datasource\EntityInterface $item The item
@return string The ID, it may be an empty
Calculates an item s ID