Skip to content

Commit

Permalink
comments
Browse files Browse the repository at this point in the history
  • Loading branch information
ryssbowh committed Mar 23, 2022
1 parent 5089537 commit 29ee9fe
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 1 deletion.
13 changes: 13 additions & 0 deletions src/Themes.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,20 @@ class Themes extends \craft\base\Plugin
{
use Ecommerce, SuperTable;

/**
* @var string
*/
const EDITION_LITE = 'lite';

/**
* @var string
*/
const EDITION_PRO = 'pro';

/**
* @var string
* @since 3.1.0
*/
const EVENT_RELATED_PLUGINS = 'related_plugins';

/**
Expand All @@ -74,6 +86,7 @@ class Themes extends \craft\base\Plugin
* Plugins related to themes (which define displayers/fields etc)
* This is used to rebuild layouts/displays when such a plugin is installed/uninstalled
* @var array
* @since 3.1.0
*/
protected $_relatedPlugins;

Expand Down
12 changes: 11 additions & 1 deletion src/services/LayoutService.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,19 @@ class LayoutService extends Service
const EVENT_BEFORE_APPLY_DELETE = 'before_apply_delete';
const EVENT_AFTER_DELETE = 'after_delete';
const EVENT_BEFORE_DELETE = 'before_delete';
const CONFIG_KEY = 'themes.layouts';
/**
* @since 3.1.0
*/
const EVENT_REGISTER_TYPES = 'register_types';
/**
* @since 3.1.0
*/
const EVENT_AVAILABLE_LAYOUTS = 'available_layouts';
/**
* @since 3.1.0
*/
const EVENT_RESOLVE_REQUEST_LAYOUT = 'resolve_request_layout';
const CONFIG_KEY = 'themes.layouts';

/**
* @var Collection
Expand All @@ -53,6 +62,7 @@ class LayoutService extends Service

/**
* @var array
* @since 3.1.0
*/
protected $_types;

Expand Down
2 changes: 2 additions & 0 deletions src/traits/Ecommerce.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@
use yii\base\Event;

/**
* Integrates with commerce plugin
*
* @since 3.1.0
*/
trait Ecommerce
Expand Down
2 changes: 2 additions & 0 deletions src/traits/SuperTable.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
use yii\base\Event;

/**
* Integrates with super table plugin
*
* @since 3.1.0
*/
trait SuperTable
Expand Down

0 comments on commit 29ee9fe

Please sign in to comment.