Conditions | 1 |
Paths | 1 |
Total Lines | 14 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
31 | public function up() |
||
32 | { |
||
33 | $ds = DIRECTORY_SEPARATOR; |
||
34 | $context = $this->context(); |
||
|
|||
35 | $editor = $context->editor(); |
||
36 | $sitecode = $this->context()->locale()->getSiteItem()->getCode(); |
||
37 | |||
38 | $this->info( sprintf( 'Adding CMS type data for site "%1$s"', $sitecode ), 'vv' ); |
||
39 | |||
40 | $context->setEditor( 'ai-cms-grapesjs' ); |
||
41 | |||
42 | $this->add( __DIR__ . $ds . 'data' . $ds . 'type.php' ); |
||
43 | |||
44 | $context->setEditor( $editor ); |
||
45 | } |
||
47 |