foldershare-8.x-1.2/src/Plugin/FolderShareCommand/MoveOnRootList.php

src/Plugin/FolderShareCommand/MoveOnRootList.php
<?php
 
namespace Drupal\foldershare\Plugin\FolderShareCommand;
 
/**
 * Defines a command plugin to move files and folders 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_on_rootlist",
 *  label           = @Translation("Move"),
 *  menuNameDefault = @Translation("Move..."),
 *  menuName        = @Translation("Move..."),
 *  description     = @Translation("Move selected top-level files and folders to a new location."),
 *  category        = "copy & move",
 *  weight          = 30,
 *  userConstraints = {
 *    "noadminpermission",
 *  },
 *  parentConstraints = {
 *    "kinds"   = {
 *      "rootlist",
 *    },
 *    "access"  = "update",
 *  },
 *  destinationConstraints = {
 *    "kinds"   = {
 *      "rootlist",
 *      "folder",
 *    },
 *    "access"  = "update",
 *  },
 *  selectionConstraints = {
 *    "types"   = {
 *      "one",
 *      "many",
 *    },
 *    "kinds"   = {
 *      "any",
 *    },
 *    "ownership" = {
 *      "ownedbyuser",
 *    },
 *    "access"  = "update",
 *  },
 * )
 */
class MoveOnRootList extends MoveBase {
 
}

Главная | Обратная связь

drupal hosting | друпал хостинг | it patrol .inc