Magento Extensions Rating 2024
EXTENSIONS BY CATEGORY
B2B (Business-To-Business)
Blog
Customer
ERP (Enterprise Resource Planning)
Mega Menu
One Step Checkout
Order
POS (Point Of Sale)
Search
Shopping Cart
Sitemap
SEO
Social
Stock & Inventory Management
EXTENSIONS BY DEVELOPER
aheadWorks
Amasty
Boost My Shop
BSS Commerce
Magestore
MageWorx
Mirasvit
Templates Master
Wyomind
XTENTO
Magento 2 Documentation
Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
vendor
magento
framework
Setup
BackendFrontnameGenerator.php
Go to the documentation of this file.
1
<?php
7
namespace
Magento\Framework\Setup
;
8
12
class
BackendFrontnameGenerator
13
{
17
const
ADMIN_AREA_PATH_PREFIX
=
'admin_'
;
18
22
const
ADMIN_AREA_PATH_RANDOM_PART_LENGTH
= 6;
23
29
public
static
function
generate
()
30
{
31
return
self::ADMIN_AREA_PATH_PREFIX
32
. substr(base_convert(random_int(0, PHP_INT_MAX), 10, 36), 0, self::ADMIN_AREA_PATH_RANDOM_PART_LENGTH);
33
}
34
}
Magento\Framework\Setup\BackendFrontnameGenerator\generate
static generate()
Definition:
BackendFrontnameGenerator.php:29
Magento\Framework\Setup
Definition:
BackendFrontnameGenerator.php:7
Magento\Framework\Setup\BackendFrontnameGenerator
Definition:
BackendFrontnameGenerator.php:12
Magento\Framework\Setup\BackendFrontnameGenerator\ADMIN_AREA_PATH_PREFIX
const ADMIN_AREA_PATH_PREFIX
Definition:
BackendFrontnameGenerator.php:17
Magento\Framework\Setup\BackendFrontnameGenerator\ADMIN_AREA_PATH_RANDOM_PART_LENGTH
const ADMIN_AREA_PATH_RANDOM_PART_LENGTH
Definition:
BackendFrontnameGenerator.php:22