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

Inheritance: extends Twig_Extensio\Twig_Extension
Datei anzeigen Open project: ezsystems/ezpublish-kernel

Public Methods

Method 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

Method 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 method

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 method

public getFunctions ( )

getName() public method

public getName ( )

renderField() public method

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
return string The HTML markup

renderFieldDefinitionSettings() public method

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
return string