/** * Constructs a \Drupal\user\SharethisConfigurationForm object. * * @param \Drupal\Core\Config\ConfigFactoryInterface $config_factory * The factory for configuration objects. * @param \Drupal\Core\Extension\ModuleHandlerInterface $module_handler * The module handler. * @param \Drupal\sharethis\SharethisManagerInterface $sharethis_manager * The sharethis Manager. */ public function __construct(ConfigFactoryInterface $config_factory, ModuleHandlerInterface $module_handler, EntityManagerInterface $entity_manager, SharethisManagerInterface $sharethis_manager) { parent::__construct($config_factory); $this->moduleHandler = $module_handler; $this->entityManager = $entity_manager; $this->sharethisManager = $sharethis_manager; }
public function __construct(ConfigFactoryInterface $config_factory, StateInterface $state_interface, LinkGenerator $link_generator) { $this->config_factory = $config_factory; $this->state_interface = $state_interface; $this->link_generator = $link_generator; parent::__construct($config_factory); }
/** * Constructs a \Drupal\system\ConfigFormBase object. * * @param \Drupal\Core\Config\ConfigFactoryInterface $config_factory * @param \Drupal\Core\StringTranslation\TranslationInterface $string_translation * @param \Drupal\payment\Plugin\Payment\Method\PaymentMethodManagerInterface $payment_method_manager * @param \Drupal\plugin\PluginType\PluginTypeInterface $plugin_selector_type */ public function __construct(ConfigFactoryInterface $config_factory, TranslationInterface $string_translation, PaymentMethodManagerInterface $payment_method_manager, PluginTypeInterface $plugin_selector_type) { parent::__construct($config_factory); $this->paymentMethodManager = $payment_method_manager; $this->pluginSelectorType = $plugin_selector_type; $this->stringTranslation = $string_translation; }
/** * @param \Drupal\Core\Config\ConfigFactoryInterface $config_factory * @param Profiler $profiler * @param \Drupal\webprofiler\Profiler\ProfilerStorageManager $storageManager * @param array $templates */ public function __construct(ConfigFactoryInterface $config_factory, Profiler $profiler, ProfilerStorageManager $storageManager, $templates) { parent::__construct($config_factory); $this->profiler = $profiler; $this->templates = $templates; $this->storageManager = $storageManager; }
/** * {@inheritdoc} */ public function __construct(ConfigFactoryInterface $config_factory, ExcludeNodeTitleManagerInterface $exclude_node_title_manager, EntityTypeBundleInfoInterface $entity_bundle_info, EntityDisplayRepositoryInterface $entity_display_repository) { parent::__construct($config_factory); $this->excludeNodeTitleManager = $exclude_node_title_manager; $this->bundleInfo = $entity_bundle_info; $this->entityDisplayRepository = $entity_display_repository; }
/** * Constructs a CronForm object. * * @param \Drupal\Core\Config\ConfigFactoryInterface $config_factory * The factory for configuration objects. * @param \Drupal\Core\State\StateInterface $state * The state key value store. * @param \Drupal\Core\CronInterface $cron * The cron service. * @param \Drupal\Core\Datetime\DateFormatter $date_formatter * The date formatter service. */ public function __construct(ConfigFactoryInterface $config_factory, StateInterface $state, CronInterface $cron, DateFormatter $date_formatter) { parent::__construct($config_factory); $this->state = $state; $this->cron = $cron; $this->dateFormatter = $date_formatter; }
/** * Constructs a SiteInformationForm object. * * @param \Drupal\Core\Config\ConfigFactoryInterface $config_factory * The factory for configuration objects. * @param \Drupal\Core\Path\AliasManagerInterface $alias_manager * The path alias manager. * @param \Drupal\Core\Path\PathValidatorInterface $path_validator * The path validator. * @param \Drupal\Core\Routing\RequestContext $request_context * The request context. */ public function __construct(ConfigFactoryInterface $config_factory, AliasManagerInterface $alias_manager, PathValidatorInterface $path_validator, RequestContext $request_context) { parent::__construct($config_factory); $this->aliasManager = $alias_manager; $this->pathValidator = $path_validator; $this->requestContext = $request_context; }
/** * Constructs a \Drupal\disqus\DisqusSettingsForm object. * * @param \Drupal\Core\Config\ConfigFactoryInterface $config_factory * The factory for configuration objects. * @param \Drupal\Core\Extension\ModuleHandlerInterface $module_handler * The module handler. * @param \Drupal\file\FileUsage\FileUsageInterface * The file usage overridable. * @param \Drupal\Core\Entity\EntityTypeManagerInterface * The entity type manager. */ public function __construct(ConfigFactoryInterface $config_factory, ModuleHandlerInterface $module_handler, FileUsageInterface $file_usage, EntityTypeManagerInterface $entity_type_manager) { parent::__construct($config_factory); $this->moduleHandler = $module_handler; $this->fileUsage = $file_usage; $this->entityTypeManager = $entity_type_manager; }
/** * Constructs a new XmlSitemapSettingsForm object. * * @param \Drupal\Core\Config\ConfigFactoryInterface $config_factory * The factory for configuration objects. * @param \Drupal\Core\State\StateInterface $state * The state service. * @param \Drupal\Core\Datetime\DateFormatter $date * The date formatter service. * @param \Drupal\xmlsitemap\XmlSitemapLinkStorageInterface $link_storage * The xmlsitemap link storage service. */ public function __construct(ConfigFactoryInterface $config_factory, StateInterface $state, DateFormatter $date, XmlSitemapLinkStorageInterface $link_storage) { parent::__construct($config_factory); $this->state = $state; $this->date = $date; $this->linkStorage = $link_storage; }
/** * Constructs a ThemeSettingsForm object. * * @param \Drupal\Core\Config\ConfigFactoryInterface $config_factory * The factory for configuration objects. * @param \Drupal\Core\Extension\ModuleHandlerInterface $module_handler * The module handler instance to use. * @param \Drupal\Core\Extension\ThemeHandlerInterface $theme_handler * The theme handler. * @param \Symfony\Component\HttpFoundation\File\MimeType\MimeTypeGuesserInterface $mime_type_guesser * The MIME type guesser instance to use. */ public function __construct(ConfigFactoryInterface $config_factory, ModuleHandlerInterface $module_handler, ThemeHandlerInterface $theme_handler, MimeTypeGuesserInterface $mime_type_guesser) { parent::__construct($config_factory); $this->moduleHandler = $module_handler; $this->themeHandler = $theme_handler; $this->mimeTypeGuesser = $mime_type_guesser; }
/** * Constructs a \Drupal\aggregator\SettingsForm object. * * @param \Drupal\Core\Config\ConfigFactoryInterface $config_factory * The factory for configuration objects. * @param \Drupal\Core\Extension\ModuleHandlerInterface $module_handler * The module handler. * @param \Drupal\Core\PrivateKey $private_key * The private key. * @param \Drupal\acquia_connector\Client $client * The Acquia client. */ public function __construct(ConfigFactoryInterface $config_factory, ModuleHandlerInterface $module_handler, PrivateKey $private_key, Client $client) { parent::__construct($config_factory); $this->moduleHandler = $module_handler; $this->privateKey = $private_key; $this->client = $client; }
/** * Constructs a \Drupal\system\CustomFieldFormBase object. * * @param \Drupal\Core\Config\ConfigFactory $config_factory * The factory for configuration objects. * @param \Drupal\Core\Entity\EntityTypeManager * The entity type manager. * @param \Drupal\Core\Cache\CacheTagsInvalidatorInterface * The cache invalidator. * @param \Drupal\Core\Extension\ModuleHandler * The module handler. */ public function __construct(ConfigFactory $config_factory, EntityTypeManagerInterface $entity_type_manager, CacheTagsInvalidatorInterface $cache_invalidator, ModuleHandler $module_handler) { parent::__construct($config_factory); $this->entityTypeManager = $entity_type_manager; $this->cacheInvalidator = $cache_invalidator; $this->moduleHandler = $module_handler; }
/** * Constructs a \Drupal\system\ConfigFormBase object. * * @param \Drupal\Core\Config\ConfigFactoryInterface $config_factory * The factory for configuration objects. */ public function __construct(ConfigFactoryInterface $config_factory, MailsystemManager $mail_manager, ModuleHandlerInterface $module_handler, ThemeHandlerInterface $theme_handler) { parent::__construct($config_factory); $this->mailManager = $mail_manager; $this->moduleHandler = $module_handler; $this->themeHandler = $theme_handler; }
/** * Constructs a ImageToolkitForm object. * * @param \Drupal\Core\Config\ConfigFactoryInterface $config_factory * The factory for configuration objects. * @param \Drupal\Core\ImageToolkit\ImageToolkitManager $manager * The image toolkit plugin manager. */ public function __construct(ConfigFactoryInterface $config_factory, ImageToolkitManager $manager) { parent::__construct($config_factory); foreach ($manager->getAvailableToolkits() as $id => $definition) { $this->availableToolkits[$id] = $manager->createInstance($id); } }
/** * {@inheritDoc} */ public function __construct(ConfigFactoryInterface $config_factory, EntityTypeManagerInterface $entity_type_manager, EntityFieldManagerInterface $entity_field_manager, AliasTypeManager $alias_type_manager) { parent::__construct($config_factory); $this->entityTypeManager = $entity_type_manager; $this->entityFieldManager = $entity_field_manager; $this->aliasTypeManager = $alias_type_manager; }
/** * Constructs a new XmlSitemapCustomAddForm object. * * @param \Drupal\Core\Config\ConfigFactoryInterface $config_factory * The factory for configuration objects. * @param \Drupal\Core\Language\LanguageManagerInterface $language_manager * The language manager service. * @param \Drupal\Core\Path\AliasManagerInterface $alias_manager * The path alias manager service. * @param \Drupal\xmlsitemap\XmlSitemapLinkStorageInterface $link_storage * The xmlsitemap link storage service. */ public function __construct(ConfigFactoryInterface $config_factory, LanguageManagerInterface $language_manager, AliasManagerInterface $alias_manager, XmlSitemapLinkStorageInterface $link_storage) { parent::__construct($config_factory); $this->languageManager = $language_manager; $this->aliasManager = $alias_manager; $this->linkStorage = $link_storage; }
/** * {@inheritdoc} */ public function __construct(ConfigFactoryInterface $config_factory, AccountInterface $current_user, CronInterface $cron, QueueFactory $queue, StateInterface $state) { parent::__construct($config_factory); $this->currentUser = $current_user; $this->cron = $cron; $this->queue = $queue; $this->state = $state; }
/** * Constructs the class for image_effects settings form. * * @param \Drupal\Core\Config\ConfigFactoryInterface $config_factory * The factory for configuration objects. * @param \Drupal\Core\StreamWrapper\StreamWrapperManager $stream_wrapper_manager * The stream wrapper manager. * @param \Drupal\image_effects\Plugin\ImageEffectsPluginManager $color_plugin_manager * The color selector plugin manager. * @param \Drupal\image_effects\Plugin\ImageEffectsPluginManager $image_plugin_manager * The image selector plugin manager. * @param \Drupal\image_effects\Plugin\ImageEffectsPluginManager $font_plugin_manager * The font selector plugin manager. */ public function __construct(ConfigFactoryInterface $config_factory, StreamWrapperManager $stream_wrapper_manager, ImageEffectsPluginManager $color_plugin_manager, ImageEffectsPluginManager $image_plugin_manager, ImageEffectsPluginManager $font_plugin_manager) { parent::__construct($config_factory); $this->streamWrapperManager = $stream_wrapper_manager; $this->colorManager = $color_plugin_manager; $this->imageManager = $image_plugin_manager; $this->fontManager = $font_plugin_manager; }
/** * Constructs a \Drupal\ds\Form\SettingsForm object. * * @param \Drupal\Core\Config\ConfigFactory $config_factory * The factory for configuration objects. * @param \Drupal\Core\Extension\ModuleHandlerInterface $module_handler * The module handler. * @param \Drupal\Core\Theme\Registry $theme_registry * The theme registry used. * @param \Drupal\Core\Routing\RouteBuilderInterface $route_builder * The route builder. * @param \Drupal\Core\Entity\EntityManagerInterface $entity_manager * The entity manager. */ public function __construct(ConfigFactory $config_factory, ModuleHandlerInterface $module_handler, Registry $theme_registry, RouteBuilderInterface $route_builder, EntityManagerInterface $entity_manager) { parent::__construct($config_factory); $this->moduleHandler = $module_handler; $this->themeRegistry = $theme_registry; $this->routeBuilder = $route_builder; $this->entityManager = $entity_manager; }
/** * Constructs a PerformanceForm object. * * @param \Drupal\Core\Config\ConfigFactoryInterface $config_factory * The factory for configuration objects. * @param \Drupal\Core\Cache\CacheBackendInterface $render_cache * @param \Drupal\Core\Datetime\DateFormatter $date_formater * The date formatter service. * @param \Drupal\Core\Asset\AssetCollectionOptimizerInterface $css_collection_optimizer * The CSS asset collection optimizer service. * @param \Drupal\Core\Asset\AssetCollectionOptimizerInterface $js_collection_optimizer * The JavaScript asset collection optimizer service. */ public function __construct(ConfigFactoryInterface $config_factory, CacheBackendInterface $render_cache, DateFormatter $date_formater, AssetCollectionOptimizerInterface $css_collection_optimizer, AssetCollectionOptimizerInterface $js_collection_optimizer) { parent::__construct($config_factory); $this->renderCache = $render_cache; $this->dateFormatter = $date_formater; $this->cssCollectionOptimizer = $css_collection_optimizer; $this->jsCollectionOptimizer = $js_collection_optimizer; }
/** * Constructs a \Drupal\user\RestForm object. */ public function __construct(ConfigFactoryInterface $config_factory, ModuleHandler $module_handler, array $authenticationProviders, array $formats, ResourcePluginManager $resourcePluginManager, RouteBuilderInterface $routeBuilder) { parent::__construct($config_factory); $this->moduleHandler = $module_handler; $this->authenticationProviders = $authenticationProviders; $this->formats = $formats; $this->resourcePluginManager = $resourcePluginManager; $this->routeBuilder = $routeBuilder; }
/** * Constructs a new DmapsGeocoderOptionsForm object. * * @param \Drupal\Core\Config\ConfigFactoryInterface $config_factory * The configuration factory. * @param \Drupal\dmaps\DmapsGeocoder $geocoder_manager * The dmaps Geocoder service. * @param \Drupal\dmaps\LocationCountriesManager $country_manager * The dmaps country manager service. */ public function __construct(ConfigFactoryInterface $config_factory, DmapsGeocoder $geocoder_manager, LocationCountriesManager $country_manager) { parent::__construct($config_factory); $request = $this->getRequest(); $this->iso = $request->attributes->get('iso'); $this->service = $request->attributes->get('service'); $this->configFactory = $config_factory; $this->countryManager = $country_manager; $this->geocoderManager = $geocoder_manager; }
/** * Constructs a NegotiationConfigureForm object. * * @param \Drupal\Core\Config\ConfigFactoryInterface $config_factory * The factory for configuration objects. * @param \Drupal\language\ConfigurableLanguageManagerInterface $language_manager * The language manager. * @param \Drupal\language\LanguageNegotiatorInterface $negotiator * The language negotiation methods manager. * @param \Drupal\Core\Block\BlockManagerInterface $block_manager * The block manager. * @param \Drupal\Core\Extension\ThemeHandlerInterface $theme_handler * The theme handler. * @param \Drupal\Core\Entity\EntityStorageInterface $block_storage * The block storage, or NULL if not available. */ public function __construct(ConfigFactoryInterface $config_factory, ConfigurableLanguageManagerInterface $language_manager, LanguageNegotiatorInterface $negotiator, BlockManagerInterface $block_manager, ThemeHandlerInterface $theme_handler, EntityStorageInterface $block_storage = NULL) { parent::__construct($config_factory); $this->languageTypes = $this->config('language.types'); $this->languageManager = $language_manager; $this->negotiator = $negotiator; $this->blockManager = $block_manager; $this->themeHandler = $theme_handler; $this->blockStorage = $block_storage; }
/** * AutoEntityLabelController constructor. * @param \Drupal\Core\Config\ConfigFactoryInterface $config_factory * @param \Drupal\Core\Entity\EntityManagerInterface $entity_manager * @param \Drupal\Core\Routing\RouteMatchInterface $route_match */ public function __construct(ConfigFactoryInterface $config_factory, EntityManagerInterface $entity_manager, RouteMatchInterface $route_match, AutoENtityLabelManager $auto_entity_label_manager) { parent::__construct($config_factory); $this->entitymanager = $entity_manager; $this->route_match = $route_match; $this->auto_entity_label_manager = $auto_entity_label_manager; $route_options = $this->route_match->getRouteObject()->getOptions(); $this->entity_type_parameter = array_shift(array_keys($route_options['parameters'])); $entity_type = $this->route_match->getParameter($this->entity_type_parameter); $this->entity_type_id = $entity_type->id(); }
/** * Constructs a \Drupal\aggregator\SettingsForm object. * * @param \Drupal\Core\Config\ConfigFactoryInterface $config_factory * The factory for configuration objects. * @param \Drupal\aggregator\Plugin\AggregatorPluginManager $fetcher_manager * The aggregator fetcher plugin manager. * @param \Drupal\aggregator\Plugin\AggregatorPluginManager $parser_manager * The aggregator parser plugin manager. * @param \Drupal\aggregator\Plugin\AggregatorPluginManager $processor_manager * The aggregator processor plugin manager. * @param \Drupal\Core\StringTranslation\TranslationInterface $string_translation * The string translation manager. */ public function __construct(ConfigFactoryInterface $config_factory, AggregatorPluginManager $fetcher_manager, AggregatorPluginManager $parser_manager, AggregatorPluginManager $processor_manager, TranslationInterface $string_translation) { parent::__construct($config_factory); $this->stringTranslation = $string_translation; $this->managers = array('fetcher' => $fetcher_manager, 'parser' => $parser_manager, 'processor' => $processor_manager); // Get all available fetcher, parser and processor definitions. foreach (array('fetcher', 'parser', 'processor') as $type) { foreach ($this->managers[$type]->getDefinitions() as $id => $definition) { $this->definitions[$type][$id] = SafeMarkup::format('@title <span class="description">@description</span>', array('@title' => $definition['title'], '@description' => $definition['description'])); } } }
/** * Constructs a RegionalForm object. * * @param \Drupal\Core\Config\ConfigFactoryInterface $config_factory * The factory for configuration objects. * @param \Drupal\Core\Locale\CountryManagerInterface $country_manager * The country manager. */ public function __construct(ConfigFactoryInterface $config_factory, CountryManagerInterface $country_manager) { parent::__construct($config_factory); $this->countryManager = $country_manager; }
/** * Constructs a \Drupal\views_ui\Form\BasicSettingsForm object. * * @param \Drupal\Core\Config\ConfigFactoryInterface $config_factory * The factory for configuration objects. * @param \Drupal\Core\Extension\ThemeHandlerInterface $theme_handler * The theme handler. */ public function __construct(ConfigFactoryInterface $config_factory, ThemeHandlerInterface $theme_handler) { parent::__construct($config_factory); $this->themeHandler = $theme_handler; }
public function __construct(ConfigFactoryInterface $config_factory, FillPdfAdminFormHelper $admin_form_helper) { $this->adminFormHelper = $admin_form_helper; parent::__construct($config_factory); }
/** * Constructs a PerformanceForm object. * * @param \Drupal\Core\Config\ConfigFactoryInterface $config_factory * The factory for configuration objects. * @param \Drupal\Core\Cache\CacheBackendInterface $render_cache * @param \Drupal\Core\Datetime\Date $date_formater * The date formatter service. */ public function __construct(ConfigFactoryInterface $config_factory, CacheBackendInterface $render_cache, DateFormatter $date_formater) { parent::__construct($config_factory); $this->renderCache = $render_cache; $this->dateFormatter = $date_formater; }
/** * EmbridgeSettingsForm constructor. * * @param ConfigFactoryInterface $config_factory * The config factory. * @param EnterMediaDbClientInterface $client * The EMDB client service. */ public function __construct(ConfigFactoryInterface $config_factory, EnterMediaDbClientInterface $client) { parent::__construct($config_factory); $this->client = $client; }