StringBase::delete

public StringBase::delete() Deletes string object from storage. Return value $this Throws \Drupal\locale\StringStorageException In case of failures, an exception is thrown. Overrides StringInterface::delete File core/modules/locale/src/StringBase.php, line 194 Class StringBase Defines the locale string base class. Namespace Drupal\locale Code public function delete() { if (!$this->isNew()) { if ($storage = $this->getStorage()) { $storage->delete($this); }

StringBase::getId

public StringBase::getId() Gets the string unique identifier. Return value int The string identifier. Overrides StringInterface::getId File core/modules/locale/src/StringBase.php, line 67 Class StringBase Defines the locale string base class. Namespace Drupal\locale Code public function getId() { return isset($this->lid) ? $this->lid : NULL; }

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

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::$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::$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;

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::getViaScheme

public StreamWrapperManagerInterface::getViaScheme($scheme) Returns a reference to the stream wrapper class responsible for a scheme. This helper method returns a stream instance using a scheme. That is, the passed string does not contain a "://". For example, "public" is a scheme but "public://" is a URI (stream). This is because the later contains both a scheme and target despite target being empty. Note: the instance URI will be initialized to "scheme://" so that you can make the customary m