class AdsenseAd in Google AdSense integration 8
Defines an adsense ad item annotation object.
Plugin Namespace: Plugin\adsense\AdsenseAd.
Hierarchy
- class \Drupal\Component\Annotation\Plugin implements AnnotationInterface
- class \Drupal\adsense\Annotation\AdsenseAd
Expanded class hierarchy of AdsenseAd
See also
\Drupal\adsense\AdsenseAdManager
5 classes are annotated with AdsenseAd
- CustomSearchAd in src/
Plugin/ AdsenseAd/ CustomSearchAd.php - Provides an AdSense custom search engine form.
- CustomSearchV2Ad in src/
Plugin/ AdsenseAd/ CustomSearchV2Ad.php - Provides an AdSense custom search engine form.
- ManagedAd in src/
Plugin/ AdsenseAd/ ManagedAd.php - Provides an AdSense managed ad unit.
- OldCodeAd in oldcode/
src/ Plugin/ AdsenseAd/ OldCodeAd.php - Provides an AdSense old code ad unit.
- OldSearchAd in oldcode/
src/ Plugin/ AdsenseAd/ OldSearchAd.php - Provides an AdSense old search engine form.
File
- src/
Annotation/ AdsenseAd.php, line 17
Namespace
Drupal\adsense\AnnotationView source
class AdsenseAd extends Plugin {
/**
* The plugin ID.
*
* @var string
*/
public $id;
/**
* The name of the ad type.
*
* @var \Drupal\Core\Annotation\Translation
*
* @ingroup plugin_translatable
*/
public $name;
/**
* Indicates if the plugin is for AdSense for Search.
*
* @var bool
*/
public $isSearch;
/**
* Indicates if the plugin needs an Ad ID provided by the AdSense UI.
*
* @var bool
*/
public $needsSlot;
/**
* Version of the plugin to use.
*
* @var int
*/
public $version = 1;
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
AdsenseAd:: |
public | property | The plugin ID. | |
AdsenseAd:: |
public | property | Indicates if the plugin is for AdSense for Search. | |
AdsenseAd:: |
public | property | The name of the ad type. | |
AdsenseAd:: |
public | property | Indicates if the plugin needs an Ad ID provided by the AdSense UI. | |
AdsenseAd:: |
public | property | Version of the plugin to use. | |
Plugin:: |
protected | property | The plugin definition read from the class annotation. | 1 |
Plugin:: |
public | function |
Gets the value of an annotation. Overrides AnnotationInterface:: |
5 |
Plugin:: |
public | function |
Gets the class of the annotated class. Overrides AnnotationInterface:: |
|
Plugin:: |
public | function |
Gets the unique ID for this annotated class. Overrides AnnotationInterface:: |
|
Plugin:: |
public | function |
Gets the name of the provider of the annotated class. Overrides AnnotationInterface:: |
|
Plugin:: |
protected | function | Parses an annotation into its definition. | |
Plugin:: |
public | function |
Sets the class of the annotated class. Overrides AnnotationInterface:: |
|
Plugin:: |
public | function |
Sets the name of the provider of the annotated class. Overrides AnnotationInterface:: |
|
Plugin:: |
public | function | Constructs a Plugin object. | 2 |