eZ\Publish\Core\MVC\Symfony\Templating\Twig\FieldBlockRenderer::getBlocksByFieldDefinition PHP Method

getBlocksByFieldDefinition() private method

Returns the template block for the settings of the field definition $definition.
private getBlocksByFieldDefinition ( eZ\Publish\API\Repository\Values\ContentType\FieldDefinition $definition, integer $type ) : array
$definition eZ\Publish\API\Repository\Values\ContentType\FieldDefinition
$type integer Either self::VIEW or self::EDIT
return array
    private function getBlocksByFieldDefinition(FieldDefinition $definition, $type)
    {
        return $this->getBlockByName($this->getRenderFieldDefinitionBlockName($definition->fieldTypeIdentifier, $type), $type === self::EDIT ? 'fieldDefinitionEditResources' : 'fieldDefinitionViewResources');
    }