ResetStatusEntity.php in CMS Content Sync 2.1.x
File
modules/cms_content_sync_views/src/Plugin/Action/ResetStatusEntity.php
View source
<?php
namespace Drupal\cms_content_sync_views\Plugin\Action;
use Drupal\Core\Action\ActionBase;
use Drupal\Core\Session\AccountInterface;
class ResetStatusEntity extends ActionBase {
public function execute($entity = NULL) {
if (!is_null($entity)) {
$entity
->resetStatus();
}
}
public function access($object, AccountInterface $account = NULL, $return_as_object = FALSE) {
return TRUE;
}
}