What is st(), t(), get_t(), l() ?
Answer / Vineet Kumar Yadav
In Drupal, these functions are used for text manipulation and translation:
st(): Returns a string for template usage.
t(): Translates a string.
get_t(): Returns translated content as a PHP variable.
l(): Concatenates translations and returns the resulting string.
| Is This Answer Correct ? | 0 Yes | 0 No |
Where do you find the themes to install?
How will alter the existing forms?
what is the use of Ctools in Drupal?
What is a patch in drupal and how will we apply patch in drupal?
What is triage?
When did drupal 8 release?
What are the translations available in Drupal?
How can we add the new menu to drupal admin section?
what are drupal distributions and drupal installation profiles and what is the difference between the two?
How to create drush command for your custom module?
What is dependency injection in drupal 8?
What is the difference between hook_init, hook_boot, hook_exit?