-
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.
[TASK] #15 | Introduce InternalContentObjects submodule
Signed-off-by: kamiyang <[email protected]>
- Loading branch information
Showing
2 changed files
with
70 additions
and
7 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,56 @@ | ||
<?php | ||
declare(strict_types=1); | ||
|
||
namespace Psychomieze\AdminpanelExtended\Modules\Info; | ||
|
||
/* | ||
* This file is part of the TYPO3 Adminpanel Initiative. | ||
* | ||
* For the full copyright and license information, please read the | ||
* LICENSE file that was distributed with this source code. | ||
*/ | ||
|
||
use TYPO3\CMS\Adminpanel\ModuleApi\AbstractSubModule; | ||
use TYPO3\CMS\Adminpanel\ModuleApi\ContentProviderInterface; | ||
use TYPO3\CMS\Adminpanel\ModuleApi\ModuleData; | ||
|
||
/** | ||
* Class InternalContentObjects | ||
*/ | ||
class InternalContentObjects extends AbstractSubModule implements ContentProviderInterface | ||
{ | ||
/** | ||
* Identifier for this module, | ||
* for example "preview" or "cache" | ||
* | ||
* @return string | ||
*/ | ||
public function getIdentifier(): string | ||
{ | ||
return 'internal-content-objects'; | ||
} | ||
|
||
/** | ||
* Module label | ||
* | ||
* @return string | ||
*/ | ||
public function getLabel(): string | ||
{ | ||
return 'Internal Content Objects'; | ||
} | ||
|
||
/** | ||
* Main method for content generation of an admin panel module. | ||
* Return content as HTML. For modules implementing the DataProviderInterface | ||
* the "ModuleData" object is automatically filled with the stored data - if | ||
* no data is given a "fresh" ModuleData object is injected. | ||
* | ||
* @param \TYPO3\CMS\Adminpanel\ModuleApi\ModuleData $data | ||
* @return string | ||
*/ | ||
public function getContent(ModuleData $data): string | ||
{ | ||
return ''; | ||
} | ||
} |
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