protected function EntityAnalyser::getFieldMappings in Real-time SEO for Drupal 8.2
Returns an array of mappings from metatag to Yoast.
Return value
array The array containing keys that correspond to metatag names and values that map to the yoast expected names.
1 call to EntityAnalyser::getFieldMappings()
- EntityAnalyser::createEntityPreview in src/
EntityAnalyser.php - Takes an entity, renders it and adds the metatag values.
File
- src/
EntityAnalyser.php, line 176
Class
- EntityAnalyser
- Provides a preview renderer for entities.
Namespace
Drupal\yoast_seoCode
protected function getFieldMappings() {
return [
'title' => 'metaTitle',
'description' => 'meta',
];
}