PHP code example of modera / backend-tools-settings-bundle
1. Go to this page and download the library: Download modera/backend-tools-settings-bundle library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
modera / backend-tools-settings-bundle example snippets
php
namespace MyCompany\BlogBundle\Contributions;
use Modera\BackendToolsSettingsBundle\Section\StandardSection;
use Modera\MjrIntegrationBundle\Model\FontAwesome;
use Modera\ExpanderBundle\Ext\ContributorInterface;
class SettingsSectionsProvider implements ContributorInterface
{
public function getItems(): array
{
return [
new StandardSection(
'blog',
'Blog',
'Modera.backend.configutils.runtime.SettingsListActivity',
FontAwesome::resolve('cog', 'fas'),
['category' => 'blog']
)
];
}
}
xml
<services>
<service id="mycompany_blog.contributions.settings_sections_provider"
class="MyCompany\BlogBundle\Contributions\SettingsSectionsProvider">
<tag name="modera_backend_tools_settings.contributions.sections_provider" />
</service>
</services>
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.