TranslationsStream::getDirectoryPath

TranslationsStream::getDirectoryPath() Gets the path that the wrapper is responsible for. @todo Review this method name in D8 per https://www.drupal.org/node/701358. Return value string String specifying the path. Overrides LocalStream::getDirectoryPath File core/modules/locale/src/StreamWrapper/TranslationsStream.php, line 39 Class TranslationsStream Defines a Drupal translations (translations://) stream wrapper class. Namespace Drupal\locale\StreamWrapper Code function getDirectoryP

TranslationsStream::getExternalUrl

TranslationsStream::getExternalUrl() Implements Drupal\Core\StreamWrapper\StreamWrapperInterface::getExternalUrl(). Throws \LogicException PO files URL should not be public. Overrides StreamWrapperInterface::getExternalUrl File core/modules/locale/src/StreamWrapper/TranslationsStream.php, line 48 Class TranslationsStream Defines a Drupal translations (translations://) stream wrapper class. Namespace Drupal\locale\StreamWrapper Code function getExternalUrl() { throw new \LogicExcepti

TranslationsStream::getName

public TranslationsStream::getName() Returns the name of the stream wrapper for use in the UI. Return value string The stream wrapper name. Overrides StreamWrapperInterface::getName File core/modules/locale/src/StreamWrapper/TranslationsStream.php, line 25 Class TranslationsStream Defines a Drupal translations (translations://) stream wrapper class. Namespace Drupal\locale\StreamWrapper Code public function getName() { return t('Translation files'); }

TranslationsStream::getType

public static TranslationsStream::getType() Returns the type of stream wrapper. Return value int Overrides LocalStream::getType File core/modules/locale/src/StreamWrapper/TranslationsStream.php, line 18 Class TranslationsStream Defines a Drupal translations (translations://) stream wrapper class. Namespace Drupal\locale\StreamWrapper Code public static function getType() { return StreamWrapperInterface::LOCAL_HIDDEN; }

TranslationStatusForm

Provides a translation status form. Hierarchy class \Drupal\Core\Form\FormBase implements ContainerInjectionInterface, FormInterface uses DependencySerializationTrait, LoggerChannelTrait, LinkGeneratorTrait, RedirectDestinationTrait, UrlGeneratorTrait, StringTranslationTraitclass \Drupal\locale\Form\TranslationStatusForm File core/modules/locale/src/Form/TranslationStatusForm.php, line 14 Namespace Drupal\locale\Form Members Name Modifiers Type Description DependencySerializa

TranslationStatusForm::$moduleHandler

The module handler service. Type: \Drupal\Core\Extension\ModuleHandlerInterface File core/modules/locale/src/Form/TranslationStatusForm.php, line 21 Class TranslationStatusForm Provides a translation status form. Namespace Drupal\locale\Form Code protected $moduleHandler;

TranslationStatusForm::$state

The Drupal state storage service. Type: \Drupal\Core\State\StateInterface File core/modules/locale/src/Form/TranslationStatusForm.php, line 28 Class TranslationStatusForm Provides a translation status form. Namespace Drupal\locale\Form Code protected $state;

TranslationStatusForm::buildForm

public TranslationStatusForm::buildForm(array $form, FormStateInterface $form_state) Form builder for displaying the current translation status. Overrides FormInterface::buildForm File core/modules/locale/src/Form/TranslationStatusForm.php, line 65 Class TranslationStatusForm Provides a translation status form. Namespace Drupal\locale\Form Code public function buildForm(array $form, FormStateInterface $form_state) { $languages = locale_translatable_language_list(); $status = locale

TranslationStatusForm::create

public static TranslationStatusForm::create(ContainerInterface $container) Instantiates a new instance of this class. This is a factory method that returns a new instance of this class. The factory should pass any needed dependencies into the constructor of this class, but not the container itself. Every call to this method must return a new instance of this class; that is, it may not implement a singleton. Parameters \Symfony\Component\DependencyInjection\ContainerInterface $container: The se

TranslationStatusForm::createInfoString

protected TranslationStatusForm::createInfoString($project_info) Provides debug info for projects in case translation files are not found. Translations files are being fetched either from Drupal translation server and local files or only from the local filesystem depending on the "Translation source" setting at admin/config/regional/translate/settings. This method will produce debug information including the respective path(s) based on this setting. Parameters array $project_info: An array whi