PHP Класс eZ\Publish\Core\MVC\Symfony\Templating\Twig\Extension\FieldRenderingExtension

Наследование: extends Twig_Extensio\Twig_Extension
Показать файл Открыть проект

Открытые методы

Метод Описание
__construct ( eZ\Publish\Core\MVC\Symfony\Templating\FieldBlockRendererInterface $fieldBlockRenderer, eZ\Publish\API\Repository\ContentTypeService $contentTypeService, eZ\Publish\Core\MVC\Symfony\FieldType\View\ParameterProviderRegistryInterface $parameterProviderRegistry, TranslationHelper $translationHelper )
getFunctions ( )
getName ( )
renderField ( eZ\Publish\API\Repository\Values\Content\Content $content, string $fieldIdentifier, array $params = [] ) : string Renders the HTML for a given field.
renderFieldDefinitionSettings ( eZ\Publish\API\Repository\Values\ContentType\FieldDefinition $fieldDefinition, array $params = [] ) : string Renders the HTML for the settings for the given field definition $definition.

Приватные методы

Метод Описание
getFieldTypeIdentifier ( eZ\Publish\API\Repository\Values\Content\Content $content, eZ\Publish\API\Repository\Values\Content\Field $field ) : string Returns the field type identifier for $field.
getRenderFieldBlockParameters ( eZ\Publish\API\Repository\Values\Content\Content $content, eZ\Publish\API\Repository\Values\Content\Field $field, array $params = [] ) : array Generates the array of parameter to pass to the field template.

Описание методов

__construct() публичный Метод

public __construct ( eZ\Publish\Core\MVC\Symfony\Templating\FieldBlockRendererInterface $fieldBlockRenderer, eZ\Publish\API\Repository\ContentTypeService $contentTypeService, eZ\Publish\Core\MVC\Symfony\FieldType\View\ParameterProviderRegistryInterface $parameterProviderRegistry, TranslationHelper $translationHelper )
$fieldBlockRenderer eZ\Publish\Core\MVC\Symfony\Templating\FieldBlockRendererInterface
$contentTypeService eZ\Publish\API\Repository\ContentTypeService
$parameterProviderRegistry eZ\Publish\Core\MVC\Symfony\FieldType\View\ParameterProviderRegistryInterface
$translationHelper eZ\Publish\Core\Helper\TranslationHelper

getFunctions() публичный Метод

public getFunctions ( )

getName() публичный Метод

public getName ( )

renderField() публичный Метод

Renders the HTML for a given field.
public renderField ( eZ\Publish\API\Repository\Values\Content\Content $content, string $fieldIdentifier, array $params = [] ) : string
$content eZ\Publish\API\Repository\Values\Content\Content
$fieldIdentifier string Identifier for the field we want to render
$params array An array of parameters to pass to the field view
Результат string The HTML markup

renderFieldDefinitionSettings() публичный Метод

Renders the HTML for the settings for the given field definition $definition.
public renderFieldDefinitionSettings ( eZ\Publish\API\Repository\Values\ContentType\FieldDefinition $fieldDefinition, array $params = [] ) : string
$fieldDefinition eZ\Publish\API\Repository\Values\ContentType\FieldDefinition
$params array
Результат string