public function Serializer::__construct in Zircon Profile 8.0
Same name in this branch
- 8.0 vendor/symfony/serializer/Serializer.php \Symfony\Component\Serializer\Serializer::__construct()
- 8.0 vendor/phpdocumentor/reflection-docblock/src/phpDocumentor/Reflection/DocBlock/Serializer.php \phpDocumentor\Reflection\DocBlock\Serializer::__construct()
- 8.0 core/modules/rest/src/Plugin/views/style/Serializer.php \Drupal\rest\Plugin\views\style\Serializer::__construct()
Same name and namespace in other branches
- 8 core/modules/rest/src/Plugin/views/style/Serializer.php \Drupal\rest\Plugin\views\style\Serializer::__construct()
Constructs a Plugin object.
Overrides PluginBase::__construct
File
- core/
modules/ rest/ src/ Plugin/ views/ style/ Serializer.php, line 71 - Contains \Drupal\rest\Plugin\views\style\Serializer.
Class
- Serializer
- The style plugin for serialized output formats.
Namespace
Drupal\rest\Plugin\views\styleCode
public function __construct(array $configuration, $plugin_id, $plugin_definition, SerializerInterface $serializer, array $serializer_formats) {
parent::__construct($configuration, $plugin_id, $plugin_definition);
$this->definition = $plugin_definition + $configuration;
$this->serializer = $serializer;
$this->formats = $serializer_formats;
}