You are here

public function ResourceFieldEnhancerBase::setConfiguration in JSON:API Extras 8

Same name and namespace in other branches
  1. 8.3 src/Plugin/ResourceFieldEnhancerBase.php \Drupal\jsonapi_extras\Plugin\ResourceFieldEnhancerBase::setConfiguration()
  2. 8.2 src/Plugin/ResourceFieldEnhancerBase.php \Drupal\jsonapi_extras\Plugin\ResourceFieldEnhancerBase::setConfiguration()

Sets the configuration for this plugin instance.

Parameters

array $configuration: An associative array containing the plugin's configuration.

Overrides ConfigurablePluginInterface::setConfiguration

1 call to ResourceFieldEnhancerBase::setConfiguration()
ResourceFieldEnhancerBase::getConfiguration in src/Plugin/ResourceFieldEnhancerBase.php
Gets this plugin's configuration.

File

src/Plugin/ResourceFieldEnhancerBase.php, line 53

Class

ResourceFieldEnhancerBase
Common base class for resourceFieldEnhancer plugins.

Namespace

Drupal\jsonapi_extras\Plugin

Code

public function setConfiguration(array $configuration) {
  $this->configuration = $configuration + $this
    ->defaultConfiguration();
  return $this->configuration;
}