foldershare-8.x-1.2/src/Plugin/FolderShareCommand/MoveGeneral.php
src/Plugin/FolderShareCommand/MoveGeneral.php
<?php
namespace Drupal\foldershare\Plugin\FolderShareCommand;
/**
* Defines a command plugin to move files and folders, not on a rootlist.
*
* The command moves all selected files and folders to a chosen
* destination folder or the root list.
*
* Configuration parameters:
* - 'parentId': the parent folder, if any.
* - 'selectionIds': selected entities to duplicate.
* - 'destinationId': the destination folder, if any.
*
* @ingroup foldershare
*
* @FolderShareCommand(
* id = "foldersharecommand_move",
* label = @Translation("Move"),
* menuNameDefault = @Translation("Move..."),
* menuName = @Translation("Move..."),
* description = @Translation("Move selected files and folders to a new location."),
* category = "copy & move",
* weight = 30,
* userConstraints = {
* "any",
* },
* parentConstraints = {
* "kinds" = {
* "folder",
* },
* "access" = "update",
* },
* destinationConstraints = {
* "kinds" = {
* "rootlist",
* "folder",
* },
* "access" = "update",
* },
* selectionConstraints = {
* "types" = {
* "one",
* "many",
* },
* "kinds" = {
* "any",
* },
* "access" = "update",
* },
* )
*/
class MoveGeneral extends MoveBase {
}
