EntityStubInterface
in
The Entity Stub interface.
@package TestHelpers\DrupalServiceStubs
Table of Contents
Methods
- stubInitValues() : void
- Initializes values for entity from array.
- stubSetFieldObject() : void
- Sets an object directluy to an entity field.
Methods
stubInitValues()
Initializes values for entity from array.
public
stubInitValues(array<string|int, mixed> $values) : void
Parameters
- $values : array<string|int, mixed>
stubSetFieldObject()
Sets an object directluy to an entity field.
public
stubSetFieldObject(string $fieldName, mixed $fieldObject[, string|null $langCode = NULL ]) : void
Parameters
- $fieldName : string
-
A field name.
- $fieldObject : mixed
-
An object to attach.
- $langCode : string|null = NULL
-
A language code to use.