當前位置: 首頁>>代碼示例>>PHP>>正文


PHP ContentEntityForm::__construct方法代碼示例

本文整理匯總了PHP中Drupal\Core\Entity\ContentEntityForm::__construct方法的典型用法代碼示例。如果您正苦於以下問題:PHP ContentEntityForm::__construct方法的具體用法?PHP ContentEntityForm::__construct怎麽用?PHP ContentEntityForm::__construct使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Drupal\Core\Entity\ContentEntityForm的用法示例。


在下文中一共展示了ContentEntityForm::__construct方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: __construct

 /**
  * Constructs a MessageForm object.
  *
  * @param \Drupal\Core\Entity\EntityManagerInterface $entity_manager
  *   The entity manager.
  * @param \Drupal\Core\Flood\FloodInterface $flood
  *   The flood control mechanism.
  * @param \Drupal\Core\Language\LanguageManagerInterface $language_manager
  *   The language manager service.
  * @param \Drupal\contact\MailHandlerInterface $mail_handler
  *   The contact mail handler service.
  */
 public function __construct(EntityManagerInterface $entity_manager, FloodInterface $flood, LanguageManagerInterface $language_manager, MailHandlerInterface $mail_handler)
 {
     parent::__construct($entity_manager);
     $this->flood = $flood;
     $this->languageManager = $language_manager;
     $this->mailHandler = $mail_handler;
 }
開發者ID:davidsoloman,項目名稱:drupalconsole.com,代碼行數:19,代碼來源:MessageForm.php

示例2: __construct

 /**
  * Constructs a new AddToCartForm object.
  *
  * @param \Drupal\Core\Entity\EntityManagerInterface $entity_manager
  *   The entity manager.
  * @param \Drupal\commerce_cart\CartManagerInterface $cart_manager
  *   The cart manager.
  * @param \Drupal\commerce_cart\CartProviderInterface $cart_provider
  *   The cart provider.
  * @param \Drupal\commerce_store\StoreContextInterface $store_context
  *   The store context.
  */
 public function __construct(EntityManagerInterface $entity_manager, CartManagerInterface $cart_manager, CartProviderInterface $cart_provider, StoreContextInterface $store_context)
 {
     parent::__construct($entity_manager);
     $this->cartManager = $cart_manager;
     $this->cartProvider = $cart_provider;
     $this->storeContext = $store_context;
 }
開發者ID:alexburrows,項目名稱:cream-2.x,代碼行數:19,代碼來源:AddToCartForm.php

示例3: __construct

 /**
  * Constructs a BlockContentForm object.
  *
  * @param \Drupal\Core\Entity\EntityManagerInterface $entity_manager
  *   The entity manager.
  * @param \Drupal\Core\Entity\EntityStorageInterface $block_content_storage
  *   The custom block storage.
  * @param \Drupal\Core\Entity\EntityStorageInterface $block_content_type_storage
  *   The custom block type storage.
  * @param \Drupal\Core\Language\LanguageManagerInterface $language_manager
  *   The language manager.
  */
 public function __construct(EntityManagerInterface $entity_manager, EntityStorageInterface $block_content_storage, EntityStorageInterface $block_content_type_storage, LanguageManagerInterface $language_manager)
 {
     parent::__construct($entity_manager);
     $this->blockContentStorage = $block_content_storage;
     $this->blockContentTypeStorage = $block_content_type_storage;
     $this->languageManager = $language_manager;
 }
開發者ID:nstielau,項目名稱:drops-8,代碼行數:19,代碼來源:BlockContentForm.php

示例4: __construct

 /**
  * Constructs a new instance.
  *
  * @param \Drupal\Core\Entity\EntityManagerInterface $entity_manager
  *   The entity manager.
  * @param \Drupal\Core\StringTranslation\TranslationInterface $string_translation
  * @param \Drupal\Core\Session\AccountInterface $current_user
  * @param \Drupal\plugin\Plugin\Plugin\PluginSelector\PluginSelectorManagerInterface $plugin_selector_manager
  * @param \Drupal\plugin\PluginType\PluginTypeInterface $payment_method_type
  */
 public function __construct(EntityManagerInterface $entity_manager, TranslationInterface $string_translation, AccountInterface $current_user, PluginSelectorManagerInterface $plugin_selector_manager, PluginTypeInterface $payment_method_type)
 {
     parent::__construct($entity_manager);
     $this->currentUser = $current_user;
     $this->paymentMethodType = $payment_method_type;
     $this->pluginSelectorManager = $plugin_selector_manager;
     $this->stringTranslation = $string_translation;
 }
開發者ID:nishantkumar155,項目名稱:drupal8.crackle,代碼行數:18,代碼來源:PaymentForm.php

示例5: __construct

 public function __construct(EntityManagerInterface $entity_manager, FillPdfAdminFormHelperInterface $admin_form_helper,
                             FillPdfLinkManipulatorInterface $link_manipulator,
                             EntityHelper $entity_helper, InputHelperInterface $input_helper,
                             SerializerInterface $fillpdf_serializer, FileSystemInterface $file_system) {
   $this->entityManager = $entity_manager;
   parent::__construct($this->entityManager);
   $this->adminFormHelper = $admin_form_helper;
   $this->linkManipulator = $link_manipulator;
   $this->entityHelper = $entity_helper;
   $this->inputHelper = $input_helper;
   $this->serializer = $fillpdf_serializer;
   $this->fileSystem = $file_system;
 }
開發者ID:AshishNaik021,項目名稱:iimisac-d8,代碼行數:13,代碼來源:FillPdfFormForm.php

示例6: __construct

 /**
  * Constructs a MenuLinkContentForm object.
  *
  * @param \Drupal\Core\Entity\EntityManagerInterface $entity_manager
  *   The entity manager.
  * @param \Drupal\Core\Menu\MenuParentFormSelectorInterface $menu_parent_selector
  *   The menu parent form selector service.
  * @param \Drupal\Core\Language\LanguageManagerInterface $language_manager
  *   The language manager.
  * @param \Drupal\Core\Path\PathValidatorInterface $path_validator
  *   The path validator.
  */
 public function __construct(EntityManagerInterface $entity_manager, MenuParentFormSelectorInterface $menu_parent_selector, LanguageManagerInterface $language_manager, PathValidatorInterface $path_validator)
 {
     parent::__construct($entity_manager, $language_manager);
     $this->menuParentSelector = $menu_parent_selector;
     $this->pathValidator = $path_validator;
 }
開發者ID:aWEBoLabs,項目名稱:taxi,代碼行數:18,代碼來源:MenuLinkContentForm.php

示例7: __construct

 /**
  * Constructs a new EntityForm object.
  *
  * @param \Drupal\Core\Entity\EntityManagerInterface $entity_manager
  *   The entity manager.
  * @param \Drupal\Core\Language\LanguageManagerInterface $language_manager
  *   The language manager.
  * @param \Drupal\Core\Entity\Query\QueryFactory $entity_query
  *   The entity query factory.
  */
 public function __construct(EntityManagerInterface $entity_manager, LanguageManagerInterface $language_manager, QueryFactory $entity_query)
 {
     parent::__construct($entity_manager);
     $this->languageManager = $language_manager;
     $this->entityQuery = $entity_query;
 }
開發者ID:dmyerson,項目名稱:d8ecs,代碼行數:16,代碼來源:AccountForm.php

示例8: __construct

 /**
  * Constructs a new OrderForm object.
  *
  * @param \Drupal\Core\Entity\EntityManagerInterface $entity_manager
  *   The entity manager.
  * @param \Drupal\Core\Datetime\DateFormatterInterface $date_formatter
  *   The date formatter.
  */
 public function __construct(EntityManagerInterface $entity_manager, DateFormatterInterface $date_formatter)
 {
     parent::__construct($entity_manager);
     $this->dateFormatter = $date_formatter;
 }
開發者ID:alexburrows,項目名稱:cream-2.x,代碼行數:13,代碼來源:OrderForm.php

示例9: __construct

 /**
  * Constructs a MessageEditForm object.
  *
  * @param \Drupal\Core\Entity\EntityManagerInterface $entity_manager
  *   The entity manager.
  * @param \Drupal\Core\Language\LanguageManagerInterface $language_manager
  *   The language manager service.
  */
 public function __construct(EntityManagerInterface $entity_manager, LanguageManagerInterface $language_manager)
 {
     parent::__construct($entity_manager);
     $this->languageManager = $language_manager;
 }
開發者ID:DrupalCamp-NYC,項目名稱:dcnyc16,代碼行數:13,代碼來源:MessageEditForm.php

示例10: __construct

 /**
  * Constructs a MenuLinkContentForm object.
  *
  * @param \Drupal\Core\Entity\EntityManagerInterface $entity_manager
  *   The entity manager.
  * @param \Drupal\Core\Menu\MenuParentFormSelectorInterface $menu_parent_selector
  *   The menu parent form selector service.
  * @param \Drupal\Core\Path\AliasManagerInterface $alias_manager
  *   The alias manager.
  * @param \Drupal\Core\Extension\ModuleHandlerInterface $module_handler
  *   The module handler;
  * @param \Symfony\Component\Routing\RequestContext $request_context
  *   The request context.
  * @param \Drupal\Core\Language\LanguageManagerInterface $language_manager
  *   The language manager.
  * @param \Drupal\Core\Access\AccessManagerInterface $access_manager
  *   The access manager.
  * @param \Drupal\Core\Session\AccountInterface $account
  *   The current user.
  */
 public function __construct(EntityManagerInterface $entity_manager, MenuParentFormSelectorInterface $menu_parent_selector, AliasManagerInterface $alias_manager, ModuleHandlerInterface $module_handler, RequestContext $request_context, LanguageManagerInterface $language_manager, AccessManagerInterface $access_manager, AccountInterface $account)
 {
     parent::__construct($entity_manager, $language_manager);
     $this->menuParentSelector = $menu_parent_selector;
     $this->pathAliasManager = $alias_manager;
     $this->moduleHandler = $module_handler;
     $this->requestContext = $request_context;
     $this->languageManager = $language_manager;
     $this->accessManager = $access_manager;
     $this->account = $account;
 }
開發者ID:anatalsceo,項目名稱:en-classe,代碼行數:31,代碼來源:MenuLinkContentForm.php

示例11: __construct

 /**
  * Constructs a BookOutlineForm object.
  *
  * @param \Drupal\Core\Entity\EntityManagerInterface $entity_manager
  *   The entity manager.
  * @param \Drupal\book\BookManagerInterface $book_manager
  *   The BookManager service.
  */
 public function __construct(EntityManagerInterface $entity_manager, BookManagerInterface $book_manager)
 {
     parent::__construct($entity_manager);
     $this->bookManager = $book_manager;
 }
開發者ID:aWEBoLabs,項目名稱:taxi,代碼行數:13,代碼來源:BookOutlineForm.php

示例12: __construct

 /**
  * Constructs a ContentEntityForm object.
  *
  * @param \Drupal\Core\Entity\EntityManagerInterface $entity_manager
  *   The entity manager.
  * @param \Drupal\user\PrivateTempStoreFactory $temp_store_factory
  *   The factory for the temp store object.
  */
 public function __construct(EntityManagerInterface $entity_manager, PrivateTempStoreFactory $temp_store_factory)
 {
     parent::__construct($entity_manager);
     $this->tempStoreFactory = $temp_store_factory;
 }
開發者ID:nsp15,項目名稱:Drupal8,代碼行數:13,代碼來源:NodeForm.php

示例13: __construct

 /**
  * Constructs a new StoreForm object.
  *
  * @param \Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager
  *   The entity type manager.
  */
 public function __construct(EntityTypeManagerInterface $entity_type_manager)
 {
     parent::__construct($entity_type_manager);
     $this->storage = $entity_type_manager->getStorage('commerce_store');
 }
開發者ID:justincletus,項目名稱:webdrupalpro,代碼行數:11,代碼來源:StoreForm.php

示例14: __construct

 /**
  * Constructs a registration form.
  *
  * @param \Drupal\Core\Entity\EntityManagerInterface $entity_manager
  *   The entity manager.
  * @param \Drupal\Core\Entity\EntityReferenceSelection\SelectionPluginManager $selection_manager
  *   The selection plugin manager.
  * @param \Drupal\rng\EventManagerInterface $event_manager
  *   The RNG event manager.
  */
 public function __construct(EntityManagerInterface $entity_manager, SelectionPluginManager $selection_manager, EventManagerInterface $event_manager)
 {
     parent::__construct($entity_manager);
     $this->selectionManager = $selection_manager;
     $this->eventManager = $event_manager;
 }
開發者ID:justincletus,項目名稱:webdrupalpro,代碼行數:16,代碼來源:RegistrationForm.php

示例15: __construct

 /**
  * Constructs a new ShortcutForm instance.
  *
  * @param \Drupal\Core\Entity\EntityManagerInterface $entity_manager
  *   The entity manager
  * @param \Drupal\Core\Path\PathValidatorInterface $path_validator
  *   The path validator.
  */
 public function __construct(EntityManagerInterface $entity_manager, PathValidatorInterface $path_validator)
 {
     parent::__construct($entity_manager);
     $this->pathValidator = $path_validator;
 }
開發者ID:davidsoloman,項目名稱:drupalconsole.com,代碼行數:13,代碼來源:ShortcutForm.php


注:本文中的Drupal\Core\Entity\ContentEntityForm::__construct方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。