private static function ManagedAd::isFluid in Google AdSense integration 8
Helper function to determine if an ad format is fluid.
Parameters
string $format: Ad format.
Return value
bool TRUE if the ad is fluid.
2 calls to ManagedAd::isFluid()
- ManagedAd::getAdContent in src/
Plugin/ AdsenseAd/ ManagedAd.php - Return the ad content.
- ManagedAd::getAdPlaceholder in src/
Plugin/ AdsenseAd/ ManagedAd.php - Return the ad placeholder.
File
- src/
Plugin/ AdsenseAd/ ManagedAd.php, line 189
Class
- ManagedAd
- Provides an AdSense managed ad unit.
Namespace
Drupal\adsense\Plugin\AdsenseAdCode
private static function isFluid($format) {
return in_array($format, [
'in-article',
'in-feed',
]);
}