You are here

public function WebformTranslationManagerInterface::getElements in Webform 8.5

Same name and namespace in other branches
  1. 6.x 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\webform

Code

public function getElements(WebformInterface $webform, $langcode = NULL, $reset = FALSE);