-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathDeleteServiceInterface.php
More file actions
37 lines (32 loc) · 938 Bytes
/
DeleteServiceInterface.php
File metadata and controls
37 lines (32 loc) · 938 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<?php
declare(strict_types=1);
/**
* This source file is available under the terms of the
* Pimcore Open Core License (POCL)
* Full copyright and license information is available in
* LICENSE.md which is distributed with this source code.
*
* @copyright Copyright (c) Pimcore GmbH (https://www.pimcore.com)
* @license Pimcore Open Core License (POCL)
*/
namespace Pimcore\Bundle\StudioBackendBundle\Element\Service\ExecutionEngine;
use Pimcore\Model\Element\ElementInterface;
use Pimcore\Model\UserInterface;
/**
* @internal
*/
interface DeleteServiceInterface
{
public function deleteElementsWithExecutionEngine(
ElementInterface $element,
UserInterface $user,
string $elementType,
array $childrenIds,
bool $useRecycleBin
): int;
public function batchDeleteElements(
array $elements,
UserInterface $user,
string $elementType,
): int;
}