Skip to content
Snippets Groups Projects
Commit 4d85ce1a authored by Rajab Natshah's avatar Rajab Natshah
Browse files

Issue #2902485: Enhanced the behavior of [Real Time SEO] module UI in Varbase SEO for LTR and RTL

parent b1234b39
No related branches found
No related tags found
No related merge requests found
......@@ -8,8 +8,14 @@
use Drupal\Core\Form\FormStateInterface;
/**
* Implements hook_form_FORM_ID_alter().
* Implements hook_form_BASE_FORM_ID_alter().
*/
function varbase_seo_form_alter(&$form, FormStateInterface $form_state, $form_id) {
$form['field_yoast_seo']['widget']['0']['yoast_seo']['#title'] = t('Real-time SEO analyzer');
function varbase_seo_node_form_alter(&$form, FormStateInterface $form_state, $form_id) {
if (isset($form['field_yoast_seo']) &&
isset($form['field_yoast_seo']['widget']) &&
isset($form['field_yoast_seo']['widget']['0'] &&
isset($form['field_yoast_seo']['widget']['0']['yoast_seo']))
) {
$form['field_yoast_seo']['widget']['0']['yoast_seo']['#title'] = t('Real-time SEO analyzer');
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment