protected function MicrodataReferenceFieldsTestCase::getFields in Microdata 7
Implements MicrodataFieldTestCase::getFields().
Overrides MicrodataFieldTestCase::getFields
File
- ./
microdata.test, line 597 - Tests for microdata.module.
Class
- MicrodataReferenceFieldsTestCase
- Test Field Collection microdata placement.
Code
protected function getFields() {
// Create fields for the field collection and for the field group.
$fields = array();
foreach ($this->field_names as $field_name => $subfield_name) {
$fields[] = array(
'field_name' => $field_name,
'type' => 'field_collection',
);
$fields[] = array(
'field_name' => $subfield_name,
'type' => 'text',
'cardinality' => 1,
'translatable' => FALSE,
);
}
return $fields;
}