protected function MappingEditForm::filterMetatags in GatherContent 8.3
Return only supported metatag fields.
Parameters
object $gathercontent_field: Object of field from GatherContent.
Return value
array Array of supported metatag fields.
1 call to MappingEditForm::filterMetatags()
- MappingEditForm::form in src/
Form/ MappingEditForm.php - Gets the actual form array to be built.
File
- src/
Form/ MappingEditForm.php, line 650
Class
- MappingEditForm
- Class MappingEditForm.
Namespace
Drupal\gathercontent\FormCode
protected function filterMetatags($gathercontent_field) {
if ($gathercontent_field->type === 'text' && $gathercontent_field->plain_text) {
return [
'title' => t('Title'),
'description' => t('Description'),
'abstract' => t('Abstract'),
'keywords' => t('Keywords'),
];
}
else {
return [];
}
}