File tree Expand file tree Collapse file tree 5 files changed +20
-0
lines changed
app/code/Magento/PageBuilder/Model Expand file tree Collapse file tree 5 files changed +20
-0
lines changed Original file line number Diff line number Diff line change 10
10
11
11
use Magento \Framework \App \Config \ScopeConfigInterface ;
12
12
13
+ /**
14
+ * Represents PageBuilder loaded and cached configuration data
15
+ */
13
16
class Config extends \Magento \Framework \Config \Data implements \Magento \PageBuilder \Model \ConfigInterface
14
17
{
15
18
const IS_PAGEBUILDER_ENABLED = 'cms/pagebuilder/enabled ' ;
@@ -36,6 +39,8 @@ public function __construct(
36
39
}
37
40
38
41
/**
42
+ * Return all menu sections
43
+ *
39
44
* @return array
40
45
*/
41
46
public function getMenuSections () : array
Original file line number Diff line number Diff line change 8
8
9
9
namespace Magento \PageBuilder \Model \Config \MenuSection ;
10
10
11
+ /**
12
+ * Converter for menu section in configuration
13
+ */
11
14
class Converter implements \Magento \Framework \Config \ConverterInterface
12
15
{
13
16
/**
Original file line number Diff line number Diff line change 8
8
9
9
namespace Magento \PageBuilder \Model \Config \MenuSection ;
10
10
11
+ /**
12
+ * Reader for menu section in configuration
13
+ */
11
14
class Reader extends \Magento \Framework \Config \Reader \Filesystem
12
15
{
13
16
/**
Original file line number Diff line number Diff line change 8
8
9
9
namespace Magento \PageBuilder \Model \Config \MenuSection ;
10
10
11
+ /**
12
+ * Schema locator for menu section in configuration
13
+ */
11
14
class SchemaLocator implements \Magento \Framework \Config \SchemaLocatorInterface
12
15
{
13
16
/**
Original file line number Diff line number Diff line change 15
15
interface ConfigInterface
16
16
{
17
17
/**
18
+ * Gets all the menu sections
19
+ *
18
20
* @return array
19
21
*/
20
22
public function getMenuSections () : array ;
21
23
22
24
/**
25
+ * Gets all the content types
26
+ *
23
27
* @return array
24
28
*/
25
29
public function getContentTypes () : array ;
26
30
27
31
/**
32
+ * Get if PageBuilder is enabled
33
+ *
28
34
* @return bool
29
35
*/
30
36
public function isEnabled () : bool ;
You can’t perform that action at this time.
0 commit comments