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