You are here

public function FrontendEnvironmentBase::__construct in Build Hooks 3.x

Same name and namespace in other branches
  1. 8.2 src/Plugin/FrontendEnvironmentBase.php \Drupal\build_hooks\Plugin\FrontendEnvironmentBase::__construct()

Constructs a \Drupal\Component\Plugin\PluginBase 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.

Overrides PluginBase::__construct

4 calls to FrontendEnvironmentBase::__construct()
BitbucketFrontendEnvironment::__construct in modules/build_hooks_bitbucket/src/Plugin/FrontendEnvironment/BitbucketFrontendEnvironment.php
Construct.
CircleCiFrontendEnvironment::__construct in modules/build_hooks_circleci/src/Plugin/FrontendEnvironment/CircleCiFrontendEnvironment.php
Construct.
CircleV2::__construct in modules/build_hooks_circleci/src/Plugin/FrontendEnvironment/CircleV2.php
Constructs a new CircleV2.
NetlifyFrontendEnvironment::__construct in modules/build_hooks_netlify/src/Plugin/FrontendEnvironment/NetlifyFrontendEnvironment.php
Construct.
4 methods override FrontendEnvironmentBase::__construct()
BitbucketFrontendEnvironment::__construct in modules/build_hooks_bitbucket/src/Plugin/FrontendEnvironment/BitbucketFrontendEnvironment.php
Construct.
CircleCiFrontendEnvironment::__construct in modules/build_hooks_circleci/src/Plugin/FrontendEnvironment/CircleCiFrontendEnvironment.php
Construct.
CircleV2::__construct in modules/build_hooks_circleci/src/Plugin/FrontendEnvironment/CircleV2.php
Constructs a new CircleV2.
NetlifyFrontendEnvironment::__construct in modules/build_hooks_netlify/src/Plugin/FrontendEnvironment/NetlifyFrontendEnvironment.php
Construct.

File

src/Plugin/FrontendEnvironmentBase.php, line 42

Class

FrontendEnvironmentBase
Base class for Frontend environment plugins.

Namespace

Drupal\build_hooks\Plugin

Code

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