-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#6 Only show info if module is enabled.
- Loading branch information
Showing
3 changed files
with
37 additions
and
8 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<?php | ||
|
||
namespace JustinKase\LayoutHints\Block; | ||
|
||
use JustinKase\LayoutHints\Api\WrapperInterface; | ||
use Magento\Framework\View\Element\Template; | ||
|
||
/** | ||
* Class Info | ||
* | ||
* @author Alex Ghiban <drew7721@gmail.com> | ||
*/ | ||
class Info extends Template | ||
{ | ||
/** | ||
* Should the jk-hints info show? | ||
* | ||
* Checks the app state and the status of the module. | ||
* | ||
* @return bool | ||
*/ | ||
public function isJustinKaseHintsEnabled() | ||
{ | ||
return ($this->_appState->getMode() === $this->_appState::MODE_DEVELOPER) | ||
&& $this->_scopeConfig->getValue(WrapperInterface::JK_CONFIG_BLOCK_HINTS_STATUS); | ||
} | ||
} |
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