protected compileMacroStart ( string $value ) : string | ||
$value | string | |
return | string |
protected function compileMacroStart($value)
{
$pattern = $this->createMatcher('macro');
$value = preg_replace($pattern, '$1<?php $__container->startMacro$2; ?>', $value);
$pattern = $this->createMatcher('story');
return preg_replace($pattern, '$1<?php $__container->startMacro$2; ?>', $value);
}