ltsecurityinc安防产品在线商城代码

This commit is contained in:
2026-09-14 17:47:10 +08:00
parent 57d8444c15
commit 6a3c9c5bd8
14539 changed files with 1775310 additions and 0 deletions
@@ -0,0 +1,43 @@
<?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
use Magento\Ui\Api\Data\BookmarkInterface;
use Magento\Ui\Model\Bookmark;
$objectManager = \Magento\TestFramework\Helper\Bootstrap::getObjectManager();
$bookmarks = [
[
'user_id' => 1,
'namespace' => 'bm_namespace',
'identifier' => 'first',
'current' => 1,
'config' => '{}',
'title' => 'Bb'
],
[
'user_id' => 1,
'namespace' => 'bm_namespace',
'identifier' => 'second',
'current' => 0,
'config' => '{1}',
'title' => 'Aa'
],
[
'user_id' => 1,
'namespace' => 'new_namespace',
'identifier' => 'third',
'current' => 1,
'config' => '{}',
'title' => 'Default View'
],
];
foreach ($bookmarks as $bookmarkData) {
/** @var Bookmark $bookmark */
$bookmark = $objectManager->create(BookmarkInterface::class);
$bookmark
->setData($bookmarkData)
->save();
}