You are here

public function DebugMessageFormatterPluginBase::__construct in Apigee Edge 8

DebugMessageFormatterPluginBase constructor.

Parameters

\Drupal\Core\Config\ConfigFactoryInterface $config: The config factory.

array $configuration: Plugin configuration.

string $plugin_id: The plugin id.

mixed $plugin_definition: The plugin definition.

Overrides PluginBase::__construct

File

modules/apigee_edge_debug/src/Plugin/DebugMessageFormatter/DebugMessageFormatterPluginBase.php, line 64

Class

DebugMessageFormatterPluginBase
Defines a base class for debug message formatter plugins.

Namespace

Drupal\apigee_edge_debug\Plugin\DebugMessageFormatter

Code

public function __construct(ConfigFactoryInterface $config, array $configuration, string $plugin_id, $plugin_definition) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this->maskOrganization = $config
    ->get('apigee_edge_debug.settings')
    ->get('mask_organization');
  $this->removeCredentials = $config
    ->get('apigee_edge_debug.settings')
    ->get('remove_credentials');
}