You are here

class OfficialFacebookPixelUtils in Official Facebook Pixel 8

Same name and namespace in other branches
  1. 7 src/OfficialFacebookPixelUtils.php \Drupal\official_facebook_pixel\OfficialFacebookPixelUtils

Class OfficialFacebookPixelUtils.

@package Drupal\official_facebook_pixel

Hierarchy

Expanded class hierarchy of OfficialFacebookPixelUtils

1 file declares its use of OfficialFacebookPixelUtils
official_facebook_pixel.module in ./official_facebook_pixel.module
Contains official_facebook_pixel.module.

File

src/OfficialFacebookPixelUtils.php, line 28
Contains \Drupal\official_facebook_pixel \OfficialFacebookPixelUtils.

Namespace

Drupal\official_facebook_pixel
View 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

Namesort descending Modifiers Type Description Overrides
OfficialFacebookPixelUtils::isPositiveInteger public static function Returns true if id is a positive non-zero integer