You are here

public function DrupalDefaultMetaTag::__construct in Metatag 7

Constructor.

Parameters

array $info: The information about the meta tag from metatag_get_info().

array $data: The data to load for this meta tag, usually including the item 'value'.

Overrides DrupalMetaTagInterface::__construct

1 call to DrupalDefaultMetaTag::__construct()
DrupalListMetaTag::__construct in ./metatag.inc
Constructor.
1 method overrides DrupalDefaultMetaTag::__construct()
DrupalListMetaTag::__construct in ./metatag.inc
Constructor.

File

./metatag.inc, line 106
Metatag primary classes.

Class

DrupalDefaultMetaTag
The default meta tag class from which all others inherit.

Code

public function __construct(array $info, array $data = NULL) {
  $this->info = $info;
  if (isset($data)) {
    $this->data = $data;
  }
}