class OfficialFacebookPixelUtils in Official Facebook Pixel 7
Same name and namespace in other branches
- 8 src/OfficialFacebookPixelUtils.php \Drupal\official_facebook_pixel\OfficialFacebookPixelUtils
Class OfficialFacebookPixelUtils.
@package Drupal\official_facebook_pixel
Hierarchy
- class \Drupal\official_facebook_pixel\OfficialFacebookPixelUtils
Expanded class hierarchy of OfficialFacebookPixelUtils
1 file declares its use of OfficialFacebookPixelUtils
File
- src/
OfficialFacebookPixelUtils.php, line 28 - Contains \Drupal\official_facebook_pixel \OfficialFacebookPixelUtils.
Namespace
Drupal\official_facebook_pixelView source
class OfficialFacebookPixelUtils {
/**
* Returns true if id is a positive non-zero integer
*
* @access public
* @param string $pixel_id
* @return bool
*/
public static function isPositiveInteger($pixel_id) {
return isset($pixel_id) && ctype_digit($pixel_id) && $pixel_id !== '0';
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
OfficialFacebookPixelUtils:: |
public static | function | Returns true if id is a positive non-zero integer |