SubformState::$parentForm

The parent form. Type: mixed[] File core/lib/Drupal/Core/Form/SubformState.php, line 19 Class SubformState Stores information about the state of a subform. Namespace Drupal\Core\Form Code protected $parentForm;

SubformState

Stores information about the state of a subform. Hierarchy class \Drupal\Core\Form\FormStateDecoratorBase implements FormStateInterfaceclass \Drupal\Core\Form\SubformState implements SubformStateInterface uses FormStateValuesTrait File core/lib/Drupal/Core/Form/SubformState.php, line 10 Namespace Drupal\Core\Form Members Name Modifiers Type Description FormStateDecoratorBase::$decoratedFormState protected property The decorated form state. FormStateDecoratorBase::addB

StringTranslationTrait::t

protected StringTranslationTrait::t($string, array $args = array(), array $options = array()) Translates a string to the current language or to a given language. See \Drupal\Core\StringTranslation\TranslatableMarkup::__construct() for important security information and usage guidelines. In order for strings to be localized, make them available in one of the ways supported by the Localization API. When possible, use the \Drupal\Core\StringTranslation\StringTranslationTrait $this->t(). Otherwi

StringTranslationTrait::setStringTranslation

public StringTranslationTrait::setStringTranslation(TranslationInterface $translation) Sets the string translation service to use. Parameters \Drupal\Core\StringTranslation\TranslationInterface $translation: The string translation service. Return value $this File core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php, line 118 Class StringTranslationTrait Wrapper methods for \Drupal\Core\StringTranslation\TranslationInterface. Namespace Drupal\Core\StringTranslation Code p

StringTranslationTrait::getStringTranslation

protected StringTranslationTrait::getStringTranslation() Gets the string translation service. Return value \Drupal\Core\StringTranslation\TranslationInterface The string translation service. File core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php, line 102 Class StringTranslationTrait Wrapper methods for \Drupal\Core\StringTranslation\TranslationInterface. Namespace Drupal\Core\StringTranslation Code protected function getStringTranslation() { if (!$this->stringTra

StringTranslationTrait::getNumberOfPlurals

protected StringTranslationTrait::getNumberOfPlurals($langcode = NULL) Returns the number of plurals supported by a given language. See also \Drupal\locale\PluralFormulaInterface::getNumberOfPlurals() File core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php, line 88 Class StringTranslationTrait Wrapper methods for \Drupal\Core\StringTranslation\TranslationInterface. Namespace Drupal\Core\StringTranslation Code protected function getNumberOfPlurals($langcode = NULL) { i

StringTranslationTrait::formatPlural

protected StringTranslationTrait::formatPlural($count, $singular, $plural, array $args = array(), array $options = array()) Formats a string containing a count of items. See also \Drupal\Core\StringTranslation\TranslationInterface::formatPlural() File core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php, line 79 Class StringTranslationTrait Wrapper methods for \Drupal\Core\StringTranslation\TranslationInterface. Namespace Drupal\Core\StringTranslation Code protected funct

StringTranslationTrait::$stringTranslation

The string translation service. Type: \Drupal\Core\StringTranslation\TranslationInterface File core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php, line 29 Class StringTranslationTrait Wrapper methods for \Drupal\Core\StringTranslation\TranslationInterface. Namespace Drupal\Core\StringTranslation Code protected $stringTranslation;

StringTranslationTrait

Wrapper methods for \Drupal\Core\StringTranslation\TranslationInterface. Using this trait will add t() and formatPlural() methods to the class. These must be used for every translatable string, similar to how procedural code must use the global functions t() and \Drupal::translation()->formatPlural(). This allows string extractor tools to find translatable strings. If the class is capable of injecting services from the container, it should inject the 'string_translation' service and assign i

StringStorageInterface::save

public StringStorageInterface::save($string) Save string object to storage. Parameters \Drupal\locale\StringInterface $string: The string object. Return value \Drupal\locale\StringStorageInterface The called object. Throws \Drupal\locale\StringStorageException In case of failures, an exception is thrown. File core/modules/locale/src/StringStorageInterface.php, line 110 Class StringStorageInterface Defines the locale string storage interface. Namespace Drupal\locale Code public funct