You are here

AssetActivate.php in farmOS 2.x

File

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

namespace Drupal\asset\Plugin\Action;


/**
 * Action that makes an asset active.
 *
 * @Action(
 *   id = "asset_activate_action",
 *   label = @Translation("Makes an Asset active"),
 *   type = "asset"
 * )
 */
class AssetActivate extends AssetStateChangeBase {

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

}

Classes

Namesort descending Description
AssetActivate Action that makes an asset active.