public function QuickFormActionBase::__construct in farmOS 2.x
Constructs a new EntityFlag object.
Parameters
array $configuration: A configuration array containing information about the plugin instance.
string $plugin_id: The plugin ID for the plugin instance.
mixed $plugin_definition: The plugin implementation definition.
\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.
\Drupal\Core\TempStore\PrivateTempStoreFactory $temp_store_factory: The tempstore factory.
\Drupal\Core\Session\AccountInterface $current_user: Current user.
Overrides EntityActionBase::__construct
File
- modules/
core/ quick/ src/ Plugin/ Action/ QuickFormActionBase.php, line 46
Class
- QuickFormActionBase
- Base class for quick form action plugins.
Namespace
Drupal\farm_quick\Plugin\ActionCode
public function __construct(array $configuration, $plugin_id, $plugin_definition, EntityTypeManagerInterface $entity_type_manager, PrivateTempStoreFactory $temp_store_factory, AccountInterface $current_user) {
parent::__construct($configuration, $plugin_id, $plugin_definition, $entity_type_manager);
$quick_form_id = $this
->getQuckFormId();
$this->tempStore = $temp_store_factory
->get("farm_quick.{$quick_form_id}");
$this->currentUser = $current_user;
}