Exponential 5.x Kernel 7.5.40 Exponential New Stack (Symfony-based) Kernel — PHP Class Reference

ContentParamConverter.php
Go to the documentation of this file.
1 <?php
2
7 namespace eZ\Bundle\EzPublishCoreBundle\Converter;
8
9 use eZ\Publish\API\Repository\ContentService;
10
11 class ContentParamConverter extends RepositoryParamConverter
12 {
14 private $contentService;
15
16 public function __construct(ContentService $contentService)
17 {
18 $this->contentService = $contentService;
19 }
20
21 protected function getSupportedClass()
22 {
23 return 'eZ\Publish\API\Repository\Values\Content\Content';
24 }
25
26 protected function getPropertyName()
27 {
28 return 'contentId';
29 }
30
31 protected function loadValueObject($id)
32 {
33 return $this->contentService->loadContent($id);
34 }
35 }
eZ\Bundle\EzPublishCoreBundle\Converter\ContentParamConverter
Definition: ContentParamConverter.php:12
eZ\Bundle\EzPublishCoreBundle\Converter\ContentParamConverter\__construct
__construct(ContentService $contentService)
Definition: ContentParamConverter.php:16
eZ\Bundle\EzPublishCoreBundle\Converter\ContentParamConverter\getSupportedClass
getSupportedClass()
Definition: ContentParamConverter.php:21
eZ\Bundle\EzPublishCoreBundle\Converter\ContentParamConverter\$contentService
$contentService
Definition: ContentParamConverter.php:14
eZ\Bundle\EzPublishCoreBundle\Converter\ContentParamConverter\getPropertyName
getPropertyName()
Definition: ContentParamConverter.php:26
eZ\Bundle\EzPublishCoreBundle\Converter\ContentParamConverter\loadValueObject
loadValueObject($id)
Definition: ContentParamConverter.php:31
eZ\Bundle\EzPublishCoreBundle\Converter\RepositoryParamConverter
Definition: RepositoryParamConverter.php:14
eZ\Publish\API\Repository\ContentService
Definition: API/Repository/ContentService.php:27
eZ\Bundle\EzPublishCoreBundle\Converter
Definition: ContentParamConverter.php:7
Copyright © 1998 – 2026 7x. All rights reserved. Licensed under the GNU GPLv2+.