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
magento2-base
setup
src
Magento
Setup
Model
Description
Mixin
Helper
WordWrapper.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\Setup\Model\Description\Mixin\Helper
;
7
11
class
WordWrapper
12
{
21
public
function
wrapWords
(
$source
, array $words,
$format
)
22
{
23
return
empty($words)
24
?
$source
25
: preg_replace(
"/\\b("
. implode(
'|'
, $words) .
")\\b/"
, sprintf(
$format
,
'$1'
),
$source
);
26
}
27
}
$source
$source
Definition:
source.php:23
Magento\Setup\Model\Description\Mixin\Helper
Definition:
RandomWordSelector.php:6
Magento\Setup\Model\Description\Mixin\Helper\WordWrapper
Definition:
WordWrapper.php:11
$format
$format
Definition:
list.phtml:12
Magento\Setup\Model\Description\Mixin\Helper\WordWrapper\wrapWords
wrapWords($source, array $words, $format)
Definition:
WordWrapper.php:21