Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
BooleanDefinition.php
Go to the documentation of this file.
1 <?php
8 
13 {
17  public function convertToDefinition(array $definition)
18  {
19  return [
20  'xsi:type' => $definition['type'],
21  'name' => $definition['name'],
22  'nullable' => $definition['nullable'] ?? true,
23  'default' => isset($definition['default']) ? (bool) $definition['default'] : null
24  ];
25  }
26 }