You are here

class AssetArchive in farmOS 2.x

Action that archives an asset.

Plugin annotation


@Action(
  id = "asset_archive_action",
  label = @Translation("Archive an asset"),
  type = "asset"
)

Hierarchy

  • class \Drupal\asset\Plugin\Action\AssetArchive extends \Drupal\asset\Plugin\Action\AssetStateChangeBase

Expanded class hierarchy of AssetArchive

File

modules/core/asset/src/Plugin/Action/AssetArchive.php, line 14

Namespace

Drupal\asset\Plugin\Action
View source
class AssetArchive extends AssetStateChangeBase {

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

}

Members