‪TYPO3CMS  ‪main
Services.php
Go to the documentation of this file.
1 <?php
2 
3 declare(strict_types=1);
4 
5 namespace ‪TYPO3\CMS\Seo;
6 
7 use Symfony\Component\DependencyInjection\ContainerBuilder;
8 use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
9 use Symfony\Component\DependencyInjection\Reference;
14 
15 return function (ContainerConfigurator $configurator, ContainerBuilder $containerBuilder) {
16  $services = $configurator->services();
17 
22  if ($containerBuilder->hasDefinition(WidgetRegistry::class)) {
23  $services->set('dashboard.widget.pagesWithoutMetaDescription')
24  ->class(PagesWithoutDescriptionWidget::class)
25  ->arg('$dataProvider', new Reference(PagesWithoutDescriptionDataProvider::class))
26  ->arg('$backendViewFactory', new Reference(BackendViewFactory::class))
27  ->arg('$options', ['refreshAvailable' => true])
28  ->tag('dashboard.widget', [
29  'identifier' => 'seo-pagesWithoutMetaDescription',
30  'groupNames' => 'seo',
31  'title' => 'LLL:EXT:seo/Resources/Private/Language/locallang_dashboard.xlf:widget.pagesWithoutMetaDescription.title',
32  'description' => 'LLL:EXT:seo/Resources/Private/Language/locallang_dashboard.xlf:widget.pagesWithoutMetaDescription.description',
33  'iconIdentifier' => 'content-widget-list',
34  'height' => 'large',
35  'width' => 'medium',
36  ]);
37  }
38 };
‪TYPO3\CMS\Backend\View\BackendViewFactory
Definition: BackendViewFactory.php:35
‪TYPO3\CMS\Dashboard\WidgetRegistry
Definition: WidgetRegistry.php:33
‪TYPO3\CMS\Seo\Widgets\Provider\PagesWithoutDescriptionDataProvider
Definition: PagesWithoutDescriptionDataProvider.php:33
‪TYPO3\CMS\Seo
‪TYPO3\CMS\Seo\Widgets\PagesWithoutDescriptionWidget
Definition: PagesWithoutDescriptionWidget.php:31