AssetArchive.php in farmOS 2.x
Namespace
Drupal\asset\Plugin\ActionFile
modules/core/asset/src/Plugin/Action/AssetArchive.phpView 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
Name | Description |
---|---|
AssetArchive | Action that archives an asset. |