function ModuleBuilderComponentFormBase::__construct in Module Builder 7.2
Construct a new form object
Parameters
\DrupalCodeBuilder\Task\Generate $generate_task: The Drupal Code Builder generate Task object. This needs to be injected so that submissions after an AJAX operation work (plus it's good for testing too).
File
- includes/
module_builder.form.inc, line 35
Class
- ModuleBuilderComponentFormBase
- Backport of ComponentFormBase from 8.x-3.x version.
Code
function __construct(Generate $generate_task) {
$this->codeBuilderTaskHandlerGenerate = $generate_task;
}