public function WebformTranslationManagerInterface::getElements in Webform 6.x
Same name and namespace in other branches
- 8.5 src/WebformTranslationManagerInterface.php \Drupal\webform\WebformTranslationManagerInterface::getElements()
Get webform elements for specific language.
Parameters
\Drupal\webform\WebformInterface $webform: A webform.
string $langcode: The language code for the webform elements.
bool $reset: (optional) Whether to reset the translated config cache. Defaults to FALSE.
Return value
array A webform's translated elements.
1 method overrides WebformTranslationManagerInterface::getElements()
- WebformTranslationManager::getElements in src/
WebformTranslationManager.php - Get webform elements for specific language.
File
- src/
WebformTranslationManagerInterface.php, line 32
Class
- WebformTranslationManagerInterface
- Defines an interface for webform element translation classes.
Namespace
Drupal\webformCode
public function getElements(WebformInterface $webform, $langcode = NULL, $reset = FALSE);