Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
V
varbase-3293696
Manage
Activity
Members
Labels
Plan
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Issue forks
varbase-3293696
Commits
4d85ce1a
Commit
4d85ce1a
authored
7 years ago
by
Rajab Natshah
Browse files
Options
Downloads
Patches
Plain Diff
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
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
modules/varbase_features/varbase_seo/varbase_seo.module
+9
-3
9 additions, 3 deletions
modules/varbase_features/varbase_seo/varbase_seo.module
with
9 additions
and
3 deletions
modules/varbase_features/varbase_seo/varbase_seo.module
+
9
−
3
View file @
4d85ce1a
...
...
@@ -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'
);
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment