You are here

public function DevelExecutePHP::__construct in Devel PHP 8

Constructor.

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\Form\FormBuilderInterface $formBuilder: The form builder service.

Overrides BlockPluginTrait::__construct

File

src/Plugin/Block/DevelExecutePHP.php, line 43

Class

DevelExecutePHP
Provides a block for executing PHP code.

Namespace

Drupal\devel_php\Plugin\Block

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, FormBuilderInterface $formBuilder) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this->formBuilder = $formBuilder;
}