public function JSONFieldEnhancer::__construct in JSON:API Extras 8.2
Same name and namespace in other branches
- 8.3 src/Plugin/jsonapi/FieldEnhancer/JSONFieldEnhancer.php \Drupal\jsonapi_extras\Plugin\jsonapi\FieldEnhancer\JSONFieldEnhancer::__construct()
Parameters
array $configuration:
string $plugin_id:
$plugin_definition:
\Drupal\Component\Serialization\Json $encoder:
Overrides PluginBase::__construct
File
- src/
Plugin/ jsonapi/ FieldEnhancer/ JSONFieldEnhancer.php, line 35
Class
- JSONFieldEnhancer
- Perform additional manipulations to JSON fields.
Namespace
Drupal\jsonapi_extras\Plugin\jsonapi\FieldEnhancerCode
public function __construct(array $configuration, string $plugin_id, $plugin_definition, Json $encoder) {
parent::__construct($configuration, $plugin_id, $plugin_definition);
$this->encoder = $encoder;
}