class Archiver
Same name in this branch
- 10 core/lib/Drupal/Core/Archiver/Annotation/Archiver.php \Drupal\Core\Archiver\Annotation\Archiver
Same name in other branches
- 9 core/lib/Drupal/Core/Archiver/Annotation/Archiver.php \Drupal\Core\Archiver\Annotation\Archiver
- 8.9.x core/lib/Drupal/Core/Archiver/Annotation/Archiver.php \Drupal\Core\Archiver\Annotation\Archiver
- 11.x core/lib/Drupal/Core/Archiver/Attribute/Archiver.php \Drupal\Core\Archiver\Attribute\Archiver
- 11.x core/lib/Drupal/Core/Archiver/Annotation/Archiver.php \Drupal\Core\Archiver\Annotation\Archiver
Defines an archiver attribute object.
Plugin Namespace: Plugin\Archiver
For a working example, see \Drupal\system\Plugin\Archiver\Zip
Hierarchy
- class \Drupal\Component\Plugin\Attribute\AttributeBase implements \Drupal\Component\Plugin\Attribute\AttributeInterface
Expanded class hierarchy of Archiver
See also
\Drupal\Core\Archiver\ArchiverManager
\Drupal\Core\Archiver\ArchiverInterface
4 files declare their use of Archiver
- ArchiverManager.php in core/
lib/ Drupal/ Core/ Archiver/ ArchiverManager.php - Tar.php in core/
modules/ system/ src/ Plugin/ Archiver/ Tar.php - UpdateTestArchiver.php in core/
modules/ update/ tests/ modules/ update_test/ src/ Plugin/ Archiver/ UpdateTestArchiver.php - Zip.php in core/
modules/ system/ src/ Plugin/ Archiver/ Zip.php
File
-
core/
lib/ Drupal/ Core/ Archiver/ Attribute/ Archiver.php, line 20
Namespace
Drupal\Core\Archiver\AttributeView source
class Archiver extends Plugin {
/**
* Constructs an archiver plugin attribute object.
*
* @param string $id
* The archiver plugin ID.
* @param \Drupal\Core\StringTranslation\TranslatableMarkup|null $title
* The human-readable name of the archiver plugin.
* @param \Drupal\Core\StringTranslation\TranslatableMarkup|null $description
* The description of the archiver plugin.
* @param array $extensions
* An array of valid extensions for this archiver.
* @param class-string|null $deriver
* (optional) The deriver class.
*/
public function __construct(string $id, ?TranslatableMarkup $title = NULL, ?TranslatableMarkup $description = NULL, array $extensions = [], ?string $deriver = NULL) {
}
}
Members
Title Sort descending | Modifiers | Object type | Summary | Overriden Title | Overrides |
---|---|---|---|---|---|
Archiver::__construct | public | function | Constructs an archiver plugin attribute object. | Overrides Plugin::__construct | |
AttributeBase::$class | protected | property | The class used for this attribute class. | ||
AttributeBase::$provider | protected | property | The provider of the attribute class. | ||
AttributeBase::get | public | function | Gets the value of an attribute. | Overrides AttributeInterface::get | 6 |
AttributeBase::getClass | public | function | Gets the class of the attribute class. | Overrides AttributeInterface::getClass | 1 |
AttributeBase::getId | public | function | Gets the unique ID for this attribute class. | Overrides AttributeInterface::getId | |
AttributeBase::getProvider | public | function | Gets the name of the provider of the attribute class. | Overrides AttributeInterface::getProvider | |
AttributeBase::setClass | public | function | Sets the class of the attributed class. | Overrides AttributeInterface::setClass | 1 |
AttributeBase::setProvider | public | function | Sets the name of the provider of the attribute class. | Overrides AttributeInterface::setProvider |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.