15 class Multiline extends \Magento\Eav\Model\Attribute\Data\Text
29 $value = array_map([$this,
'_applyInputFilter'],
$value);
47 if (
$attribute->getIsRequired() && empty($lines)) {
49 $errors[] =
__(
'"%1" is a required value.', $attributeLabel);
52 $maxAllowedLineCount =
$attribute->getMultilineCount();
53 if (count($lines) > $maxAllowedLineCount) {
55 $errors[] =
__(
'"%1" cannot contain more than %2 lines.', $attributeLabel, $maxAllowedLineCount);
58 foreach ($lines as $lineIndex => $line) {
60 if ($lineIndex == 0 || !empty($line)) {
61 $result = parent::validateValue($line);
102 return parent::compactValue(
$value);
131 case \Magento\Eav\Model\AttributeDataFactory::OUTPUT_FORMAT_ARRAY:
134 case \Magento\Eav\Model\AttributeDataFactory::OUTPUT_FORMAT_HTML:
137 case \Magento\Eav\Model\AttributeDataFactory::OUTPUT_FORMAT_ONELINE:
extractValue(RequestInterface $request)
_getRequestValue(RequestInterface $request)
outputValue($format=\Magento\Eav\Model\AttributeDataFactory::OUTPUT_FORMAT_TEXT)