Tar::__construct

public Tar::__construct($file_path) Constructs a Tar object. Parameters string $file_path: The full system path of the archive to manipulate. Only local files are supported. If the file does not yet exist, it will be created if appropriate. Throws \Drupal\Core\Archiver\ArchiverException File core/lib/Drupal/Core/Archiver/Tar.php, line 27 Class Tar Defines a archiver implementation for .tar files. Namespace Drupal\Core\Archiver Code public function __construct($file_path) { $this-&g

Tags::implode

public static Tags::implode($tags) Implodes an array of tags into a string. Parameters array $tags: An array of tags. Return value string The imploded string. File core/lib/Drupal/Component/Utility/Tags.php, line 67 Class Tags Defines a class that can explode and implode tags. Namespace Drupal\Component\Utility Code public static function implode($tags) { $encoded_tags = array(); foreach ($tags as $tag) { $encoded_tags[] = self::encode($tag); } return implode(', ', $encod

Tar

Defines a archiver implementation for .tar files. Hierarchy class \Drupal\Core\Archiver\Tar implements ArchiverInterface File core/lib/Drupal/Core/Archiver/Tar.php, line 8 Namespace Drupal\Core\Archiver Members Name Modifiers Type Description Tar::$tar protected property The underlying ArchiveTar instance that does the heavy lifting. Tar::add public function Adds the specified file or directory to the archive. Overrides ArchiverInterface::add Tar::extract pub

Tar::add

public Tar::add($file_path) Adds the specified file or directory to the archive. Parameters string $file_path: The full system path of the file or directory to add. Only local files and directories are supported. Return value \Drupal\Core\Archiver\ArchiverInterface The called object. Overrides ArchiverInterface::add File core/lib/Drupal/Core/Archiver/Tar.php, line 34 Class Tar Defines a archiver implementation for .tar files. Namespace Drupal\Core\Archiver Code public function add($f

Tar::$tar

The underlying ArchiveTar instance that does the heavy lifting. Type: \Drupal\Core\Archiver\ArchiveTar File core/lib/Drupal/Core/Archiver/Tar.php, line 15 Class Tar Defines a archiver implementation for .tar files. Namespace Drupal\Core\Archiver Code protected $tar;

TaggedHandlersPass::process

public TaggedHandlersPass::process(ContainerBuilder $container) Finds services tagged with 'service_collector', then finds all corresponding tagged services and adds a method call for each to the consuming/collecting service definition. Supported 'service_collector' tag attributes: tag: The tag name used by handler services to collect. Defaults to the service ID of the consumer. call: The method name to call on the consumer service. Defaults to 'addHandler'. The called method receives two ar

Tags::explode

public static Tags::explode($tags) Explodes a string of tags into an array. Parameters string $tags: A string to explode. Return value array An array of tags. File core/lib/Drupal/Component/Utility/Tags.php, line 21 Class Tags Defines a class that can explode and implode tags. Namespace Drupal\Component\Utility Code public static function explode($tags) { // This regexp allows the following types of user input: // this, "somecompany, llc", "and ""this"" w,o.rks", foo bar $regex

TaggedHandlersPass

Collects services to add/inject them into a consumer service. This mechanism allows a service to get multiple processor services injected, in order to establish an extensible architecture. It differs from the factory pattern in that processors are not lazily instantiated on demand; the consuming service receives instances of all registered processors when it is instantiated. Unlike a factory service, the consuming service is not ContainerAware. It differs from plugins in that all processors are

Tags

Defines a class that can explode and implode tags. Hierarchy class \Drupal\Component\Utility\Tags Related topics Utility classes and functions Overview of utility classes and functions for developers. File core/lib/Drupal/Component/Utility/Tags.php, line 10 Namespace Drupal\Component\Utility Members Name Modifiers Type Description Tags::encode public static function Encodes a tag string, taking care of special cases like commas and quotes. Tags::explode public stat

Tags::encode

public static Tags::encode($tag) Encodes a tag string, taking care of special cases like commas and quotes. Parameters string $tag: A tag string. Return value string The encoded string. File core/lib/Drupal/Component/Utility/Tags.php, line 51 Class Tags Defines a class that can explode and implode tags. Namespace Drupal\Component\Utility Code public static function encode($tag) { if (strpos($tag, ',') !== FALSE || strpos($tag, '"') !== FALSE) { return '"' . str_replace('"', '""