You are here

public property YoastSeoFieldManager::$fieldsConfiguration in Real-time SEO for Drupal 8

File

src/YoastSeoFieldManager.php, line 14

Class

YoastSeoFieldManager
Class YoastSeoFieldManager.

Namespace

Drupal\yoast_seo

Code

public $fieldsConfiguration = [
  // Paths to access the fields inside the form array.
  'paths' => [
    'title' => 'title.widget.0.value',
    'focus_keyword' => 'field_yoast_seo.widget.0.yoast_seo.focus_keyword',
    'seo_status' => 'field_yoast_seo.widget.0.yoast_seo.status',
    'path' => 'path.widget.0.alias',
  ],
  // Fields to include in the field section of the configuration.
  'fields' => [
    'title',
    'summary',
    'focus_keyword',
    'seo_status',
    'path',
  ],
  // Tokens for the fields.
  'tokens' => [
    '[current-page:title]' => 'title',
    '[node:title]' => 'title',
    '[current-page:summary]' => 'summary',
    '[node:summary]' => 'summary',
  ],
];