-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Issue #8: Panelizer Defaults & Panelizer Entity migration handlers
- Loading branch information
1 parent
79af18f
commit a37e87a
Showing
11 changed files
with
1,936 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
573 changes: 573 additions & 0 deletions
573
examples/import/baseline_content_example.panelizer.default.xml
Large diffs are not rendered by default.
Oops, something went wrong.
518 changes: 518 additions & 0 deletions
518
examples/import/baseline_content_example.panelizer.entity.xml
Large diffs are not rendered by default.
Oops, something went wrong.
22 changes: 22 additions & 0 deletions
22
examples/migrations/baseline_content_example.panelizer.default.inc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<?php | ||
|
||
class BaselineContentExamplePanelizerDefaultMigration extends BaselineContentPanelizerDefaultMigration { | ||
|
||
public function __construct() { | ||
$module_path = drupal_get_path('module', 'baseline_content_example'); | ||
$import_path = $module_path . '/examples/import/baseline_content_example.panelizer.default.xml'; | ||
parent::__construct($import_path); | ||
$this->description = t('Import Panelizer default settings.'); | ||
|
||
$this->dependencies = array( | ||
); | ||
} | ||
|
||
public function prepare(stdClass $page, stdClass $row) { | ||
|
||
} | ||
|
||
public function complete(stdClass $page, stdClass $row) { | ||
|
||
} | ||
} |
29 changes: 29 additions & 0 deletions
29
examples/migrations/baseline_content_example.panelizer.entity.inc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<?php | ||
|
||
class BaselineContentExamplePanelizerEntityMigration extends BaselineContentPanelizerEntityMigration { | ||
|
||
|
||
public function __construct() { | ||
$module_path = drupal_get_path('module', 'baseline_content_example'); | ||
$import_path = $module_path . '/examples/import/baseline_content_example.panelizer.entity.xml'; | ||
parent::__construct($import_path); | ||
$this->description = t('Import Panelizer entity settings.'); | ||
|
||
$this->dependencies = array( | ||
'BaselineContentExamplePanelizerDefaultMigration', | ||
'BaselineContentExampleNodeMigration', | ||
); | ||
|
||
$this->addFieldMapping('entity_title', 'entity_title') | ||
->xpath('entity_title') | ||
->sourceMigration($this->dependencies); | ||
} | ||
|
||
public function prepare(stdClass $page, stdClass $row) { | ||
|
||
} | ||
|
||
public function complete(stdClass $page, stdClass $row) { | ||
|
||
} | ||
} |
Oops, something went wrong.