StringBase::addLocation

public StringBase::addLocation($type, $name) Adds a location for this string. Parameters string $type: Location type that may be any arbitrary string. Types used in Drupal core are: 'javascript', 'path', 'code', 'configuration'. string $name: Location name. Drupal path in case of online discovered translations, file path in case of imported strings, configuration name for strings that come from configuration, etc. Return value $this Overrides StringInterface::addLocation File core/modules/loc

StringBase::$version

The string version. Type: string File core/modules/locale/src/StringBase.php, line 45 Class StringBase Defines the locale string base class. Namespace Drupal\locale Code public $version;

StringBase::$storage

The locale storage this string comes from or is to be saved to. Type: \Drupal\locale\StringStorageInterface File core/modules/locale/src/StringBase.php, line 52 Class StringBase Defines the locale string base class. Namespace Drupal\locale Code protected $storage;

StringBase::$source

The source string. Type: string File core/modules/locale/src/StringBase.php, line 31 Class StringBase Defines the locale string base class. Namespace Drupal\locale Code public $source;

StringBase::$locations

The string locations indexed by type. Type: string File core/modules/locale/src/StringBase.php, line 24 Class StringBase Defines the locale string base class. Namespace Drupal\locale Code public $locations;

StringBase::$lid

The string identifier. Type: int File core/modules/locale/src/StringBase.php, line 17 Class StringBase Defines the locale string base class. Namespace Drupal\locale Code public $lid;

StringBase::$context

The string context. Type: string File core/modules/locale/src/StringBase.php, line 38 Class StringBase Defines the locale string base class. Namespace Drupal\locale Code public $context;

StringBase

Defines the locale string base class. This is the base class to be used for locale string objects and contains the common properties and methods for source and translation strings. Hierarchy class \Drupal\locale\StringBase implements StringInterface File core/modules/locale/src/StringBase.php, line 11 Namespace Drupal\locale Members Name Modifiers Type Description StringBase::$context public property The string context. StringBase::$lid public property The string

StreamWrapperManagerInterface::registerWrapper

public StreamWrapperManagerInterface::registerWrapper($scheme, $class, $type) Registers stream wrapper with PHP. Parameters string $scheme: The scheme of the stream wrapper. string $class: The class of the stream wrapper. int $type: The type of the stream wrapper. File core/lib/Drupal/Core/StreamWrapper/StreamWrapperManagerInterface.php, line 170 Class StreamWrapperManagerInterface Provides a StreamWrapper manager. Namespace Drupal\Core\StreamWrapper Code public function registerWrapp

StreamWrapperManagerInterface::getWrappers

public StreamWrapperManagerInterface::getWrappers($filter = StreamWrapperInterface::ALL) Provides Drupal stream wrapper registry. A stream wrapper is an abstraction of a file system that allows Drupal to use the same set of methods to access both local files and remote resources. Provide a facility for managing and querying user-defined stream wrappers in PHP. PHP's internal stream_get_wrappers() doesn't return the class registered to handle a stream, which we need to be able to find the handle