Class

eZ\Publish\Core\Persistence\Legacy\Content\Type\ContentUpdater\Action\AddField

class AddField extends Action

Action to add a field to content objects.

Methods

__construct(Gateway $contentGateway, FieldDefinition $fieldDef, Converter $converter, StorageHandler $storageHandler, Mapper $contentMapper)

Creates a new action.

apply(int $contentId)

Applies the action to the given $content.

Details

at line 61
public __construct(Gateway $contentGateway, FieldDefinition $fieldDef, Converter $converter, StorageHandler $storageHandler, Mapper $contentMapper)

Creates a new action.

Parameters

Gateway $contentGateway
FieldDefinition $fieldDef
Converter $converter
StorageHandler $storageHandler
Mapper $contentMapper

at line 80
public apply(int $contentId)

Applies the action to the given $content.

Parameters

int $contentId