YamlDirectoryDiscovery::FILE_KEY

Defines the key in the discovered data where the file path is stored. File core/lib/Drupal/Component/Discovery/YamlDirectoryDiscovery.php, line 18 Class YamlDirectoryDiscovery Discovers multiple YAML files in a set of directories. Namespace Drupal\Component\Discovery Code const FILE_KEY = '_discovered_file_path';

Yaml::getSerializer

protected static Yaml::getSerializer() Determines which implementation to use for parsing YAML. File core/lib/Drupal/Component/Serialization/Yaml.php, line 48 Class Yaml Provides a YAML serialization implementation. Namespace Drupal\Component\Serialization Code protected static function getSerializer() { if (!isset(static::$serializer)) { // Use the PECL YAML extension if it is available. It has better // performance for file reads and is YAML compliant. if (extension_lo

Yaml::getSerializer

protected static Yaml::getSerializer() Determines which implementation to use for parsing YAML. Overrides Yaml::getSerializer File core/lib/Drupal/Core/Serialization/Yaml.php, line 18 Class Yaml Provides a YAML serialization implementation. Namespace Drupal\Core\Serialization Code protected static function getSerializer() { // Allow settings.php to override the YAML serializer. if (!isset(static::$serializer) && $class = Settings::get('yaml_parser_class')) { stati

Yaml::encode

public static Yaml::encode($data) Encodes data into the serialization format. Parameters mixed $data: The data to encode. Return value string The encoded data. Overrides SerializationInterface::encode File core/lib/Drupal/Component/Serialization/Yaml.php, line 22 Class Yaml Provides a YAML serialization implementation. Namespace Drupal\Component\Serialization Code public static function encode($data) { // Instead of using \Drupal\Component\Serialization\Yaml::getSerializer(), //

Yaml::getFileExtension

public static Yaml::getFileExtension() Gets the file extension for this serialization format. Return value string The file extension, without leading dot. Overrides SerializationInterface::getFileExtension File core/lib/Drupal/Component/Serialization/Yaml.php, line 41 Class Yaml Provides a YAML serialization implementation. Namespace Drupal\Component\Serialization Code public static function getFileExtension() { return 'yml'; }

Yaml::decode

public static Yaml::decode($raw) Decodes data from the serialization format. Parameters string $raw: The raw data string to decode. Return value mixed The decoded data. Overrides SerializationInterface::decode File core/lib/Drupal/Component/Serialization/Yaml.php, line 33 Class Yaml Provides a YAML serialization implementation. Namespace Drupal\Component\Serialization Code public static function decode($raw) { $serializer = static::getSerializer(); return $serializer::decode($raw

Yaml

Provides a YAML serialization implementation. Allow settings to override the YAML implementation resolution. Hierarchy class \Drupal\Component\Serialization\Yaml implements SerializationInterfaceclass \Drupal\Core\Serialization\Yaml File core/lib/Drupal/Core/Serialization/Yaml.php, line 13 Namespace Drupal\Core\Serialization Members Name Modifiers Type Description Yaml::$serializer protected static property The YAML implementation to use. Yaml::decode public static

Yaml

Provides a YAML serialization implementation. Proxy implementation that will choose the best library based on availability. Hierarchy class \Drupal\Component\Serialization\Yaml implements SerializationInterface File core/lib/Drupal/Component/Serialization/Yaml.php, line 10 Namespace Drupal\Component\Serialization Members Name Modifiers Type Description Yaml::$serializer protected static property The YAML implementation to use. Yaml::decode public static function

Yaml::$serializer

The YAML implementation to use. Type: \Drupal\Component\Serialization\SerializationInterface File core/lib/Drupal/Component/Serialization/Yaml.php, line 17 Class Yaml Provides a YAML serialization implementation. Namespace Drupal\Component\Serialization Code protected static $serializer;

Xss::needsRemoval

protected static Xss::needsRemoval($html_tags, $elem) Whether this element needs to be removed altogether. Parameters $html_tags: The list of HTML tags. $elem: The name of the HTML element. Return value bool TRUE if this element needs to be removed. File core/lib/Drupal/Component/Utility/Xss.php, line 325 Class Xss Provides helper to filter for cross-site scripting. Namespace Drupal\Component\Utility Code protected static function needsRemoval($html_tags, $elem) { return !isset($ht