| Server IP : 195.130.67.5 / Your IP : 216.73.217.154 Web Server : Microsoft-IIS/10.0 System : Windows NT WEBSERVER1 10.0 build 17763 (Windows Server 2016) i586 User : IUSR ( 0) PHP Version : 7.4.19 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /Old Sites/enoikio/modules/webform/src/ |
Upload File : |
<?php
namespace Drupal\webform;
/**
* Defines an interface for webform element translation classes.
*/
interface WebformTranslationManagerInterface {
/**
* Determine if the translated webform should be displayed.
*
* @return bool
* TRUE if the translated webform should be displayed.
*/
public function isAdminRoute();
/**
* Get webform elements for specific language.
*
* @param \Drupal\webform\WebformInterface $webform
* A webform.
* @param string $langcode
* The language code for the webform elements.
* @param bool $reset
* (optional) Whether to reset the translated config cache. Defaults to
* FALSE.
*
* @return array
* A webform's translated elements.
*/
public function getElements(WebformInterface $webform, $langcode = NULL, $reset = FALSE);
/**
* Get base webform elements for the site's default language.
*
* @param \Drupal\webform\WebformInterface $webform
* A webform.
*
* @return array
* Base webform elements as a flattened associative array.
*/
public function getBaseElements(WebformInterface $webform);
/**
* Get flattened associative array of translated element properties.
*
* @param \Drupal\webform\WebformInterface $webform
* A webform.
*
* @return array
* A associative array of translated element properties.
*/
public function getSourceElements(WebformInterface $webform);
/**
* Get flattened associative array of translated element properties.
*
* @param \Drupal\webform\WebformInterface $webform
* A webform.
* @param string $langcode
* The language code for the translated element properties.
*
* @return array
* A associative array of translated element properties.
*/
public function getTranslationElements(WebformInterface $webform, $langcode);
/**
* Get the original langcode for a webform.
*
* @param \Drupal\webform\WebformInterface $webform
* A webform.
*
* @return string
* The original langcode for a webform.
*/
public function getOriginalLangcode(WebformInterface $webform);
}