Метод | Описание | |
---|---|---|
__construct ( eZ\Publish\Core\MVC\Symfony\Templating\FieldBlockRendererInterface $fieldBlockRenderer, eZ\Publish\API\Repository\ContentTypeService $contentTypeService, eZ\Publish\Core\MVC\Symfony\FieldType\View\ParameterProviderRegistryInterface $parameterProviderRegistry, |
||
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. |
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, |
||
$fieldBlockRenderer | eZ\Publish\Core\MVC\Symfony\Templating\FieldBlockRendererInterface | |
$contentTypeService | eZ\Publish\API\Repository\ContentTypeService | |
$parameterProviderRegistry | eZ\Publish\Core\MVC\Symfony\FieldType\View\ParameterProviderRegistryInterface | |
$translationHelper |
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 |
public renderFieldDefinitionSettings ( eZ\Publish\API\Repository\Values\ContentType\FieldDefinition $fieldDefinition, array $params = [] ) : string | ||
$fieldDefinition | eZ\Publish\API\Repository\Values\ContentType\FieldDefinition | |
$params | array | |
Результат | string |