You are here

AssetArchive.php in farmOS 2.x

File

modules/core/asset/src/Plugin/Action/AssetArchive.php
View source
<?php

namespace Drupal\asset\Plugin\Action;


/**
 * Action that archives an asset.
 *
 * @Action(
 *   id = "asset_archive_action",
 *   label = @Translation("Archive an asset"),
 *   type = "asset"
 * )
 */
class AssetArchive extends AssetStateChangeBase {

  /**
   * {@inheritdoc}
   */
  protected $targetState = 'archived';

}

Classes

Namesort descending Description
AssetArchive Action that archives an asset.