Archiver.php

Same filename in this branch
  1. 11.x core/lib/Drupal/Core/Archiver/Annotation/Archiver.php
Same filename and directory in other branches
  1. 9 core/lib/Drupal/Core/Archiver/Annotation/Archiver.php
  2. 8.9.x core/lib/Drupal/Core/Archiver/Annotation/Archiver.php
  3. 10 core/lib/Drupal/Core/Archiver/Attribute/Archiver.php
  4. 10 core/lib/Drupal/Core/Archiver/Annotation/Archiver.php

Namespace

Drupal\Core\Archiver\Attribute

File

core/lib/Drupal/Core/Archiver/Attribute/Archiver.php

View source
<?php

namespace Drupal\Core\Archiver\Attribute;

use Drupal\Component\Plugin\Attribute\Plugin;
use Drupal\Core\StringTranslation\TranslatableMarkup;

/**
 * Defines an archiver attribute object.
 *
 * Plugin Namespace: Plugin\Archiver
 *
 * For a working example, see \Drupal\system\Plugin\Archiver\Zip
 *
 * @see \Drupal\Core\Archiver\ArchiverManager
 * @see \Drupal\Core\Archiver\ArchiverInterface
 * @see plugin_api
 * @see hook_archiver_info_alter()
 */
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) {
    }

}

Classes

Title Deprecated Summary
Archiver Defines an archiver attribute object.

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.