PHP Class eZ\Publish\Core\MVC\Symfony\Templating\Twig\Extension\FieldRenderingExtension

Inheritance: extends Twig_Extensio\Twig_Extension
Afficher le fichier Open project: ezsystems/ezpublish-kernel

Méthodes publiques

Méthode Description
__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.

Private Methods

Méthode Description
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.

Method Details

__construct() public méthode

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 méthode

public getFunctions ( )

getName() public méthode

public getName ( )

renderField() public méthode

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
Résultat string The HTML markup

renderFieldDefinitionSettings() public méthode

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
Résultat string