ConfigurableLanguageManager::init

public ConfigurableLanguageManager::init() File core/modules/language/src/ConfigurableLanguageManager.php, line 131 Class ConfigurableLanguageManager Overrides default LanguageManager to provide configured languages. Namespace Drupal\language Code public function init() { if (!$this->initialized) { foreach ($this->getDefinedLanguageTypes() as $type) { $this->getCurrentLanguage($type); } $this->initialized = TRUE; } }

FieldConfigStorage::createInstance

public static FieldConfigStorage::createInstance(ContainerInterface $container, EntityTypeInterface $entity_type) Instantiates a new instance of this entity handler. This is a factory method that returns a new instance of this object. The factory should pass any needed dependencies into the constructor of this object, but not the container itself. Every call to this method must return a new instance of this object; that is, it may not implement a singleton. Parameters \Symfony\Component\Depend

FieldConfigStorage::importDelete

public FieldConfigStorage::importDelete($name, Config $new_config, Config $old_config) Delete entities upon synchronizing configuration changes. Parameters string $name: The name of the configuration object. \Drupal\Core\Config\Config $new_config: A configuration object containing the new configuration data. \Drupal\Core\Config\Config $old_config: A configuration object containing the old configuration data. Overrides ConfigEntityStorage::importDelete File core/modules/field/src/FieldConfigSto

PoStreamReader::open

public PoStreamReader::open() Implements Drupal\Component\Gettext\PoStreamInterface::open(). Opens the stream and reads the header. The stream is ready for reading items after. Throws Exception If the URI is not yet set. Overrides PoStreamInterface::open File core/lib/Drupal/Component/Gettext/PoStreamReader.php, line 152 Class PoStreamReader Implements Gettext PO stream reader. Namespace Drupal\Component\Gettext Code public function open() { if (!empty($this->_uri)) { $this-&

Unicode::strcasecmp

public static Unicode::strcasecmp($str1, $str2) Compares UTF-8-encoded strings in a binary safe case-insensitive manner. Parameters string $str1: The first string. string $str2: The second string. Return value int Returns < 0 if $str1 is less than $str2; > 0 if $str1 is greater than $str2, and 0 if they are equal. File core/lib/Drupal/Component/Utility/Unicode.php, line 583 Class Unicode Provides Unicode-related conversions and operations. Namespace Drupal\Component\Utility Cod

SearchPageListBuilder::createInstance

public static SearchPageListBuilder::createInstance(ContainerInterface $container, EntityTypeInterface $entity_type) Instantiates a new instance of this entity handler. This is a factory method that returns a new instance of this object. The factory should pass any needed dependencies into the constructor of this object, but not the container itself. Every call to this method must return a new instance of this object; that is, it may not implement a singleton. Parameters \Symfony\Component\Dep

Unicode::strlen

public static Unicode::strlen($text) Counts the number of characters in a UTF-8 string. This is less than or equal to the byte count. Parameters string $text: The string to run the operation on. Return value int The length of the string. File core/lib/Drupal/Component/Utility/Unicode.php, line 283 Class Unicode Provides Unicode-related conversions and operations. Namespace Drupal\Component\Utility Code public static function strlen($text) { if (static::getStatus() == static::STATUS

LocaleConfigSubscriber::saveCustomizedTranslation

protected LocaleConfigSubscriber::saveCustomizedTranslation($name, $source, $context, $new_translation, $langcode) Saves a translation string and marks it as customized. Parameters string $name: The configuration name. string $source: The source string value. string $context: The source string context. string $new_translation: The translation string. string $langcode: The language code of the translation. File core/modules/locale/src/LocaleConfigSubscriber.php, line 208 Class LocaleConfigS

FileSystemInterface::validScheme

public FileSystemInterface::validScheme($scheme) Checks that the scheme of a stream URI is valid. Confirms that there is a registered stream handler for the provided scheme and that it is callable. This is useful if you want to confirm a valid scheme without creating a new instance of the registered handler. Parameters string $scheme: A URI scheme, a stream is referenced as "scheme://target". Return value bool Returns TRUE if the string is the name of a validated stream, or FALSE if the schem

MenuLinkManager::getInstance

public MenuLinkManager::getInstance(array $options) Gets a preconfigured instance of a plugin. Parameters array $options: An array of options that can be used to determine a suitable plugin to instantiate and how to configure it. Return value object|false A fully configured plugin instance. The interface of the plugin instance will depends on the plugin type. If no instance can be retrieved, FALSE will be returned. Overrides MapperInterface::getInstance File core/lib/Drupal/Core/Menu/MenuLink