public function YamlContentProcessInterface::process in YAML Content 8
Processes field data.
Parameters
\Drupal\yaml_content\Plugin\ProcessingContext $context: The processing context.
array $field_data: The field data.
Return value
array|int The entity id.
Throws
\Drupal\Core\TypedData\Exception\MissingDataException Error for missing data.
See also
\Drupal\yaml_content\Plugin\YamlContentProcessManager::preprocessFieldData()
2 methods override YamlContentProcessInterface::process()
- File::process in src/
Plugin/ yaml_content/ process/ File.php - Processes field data.
- Reference::process in src/
Plugin/ yaml_content/ process/ Reference.php - Processes field data.
File
- src/
Plugin/ YamlContentProcessInterface.php, line 26
Class
- YamlContentProcessInterface
- An interface for all YAML Content process plugins to implement.
Namespace
Drupal\yaml_content\PluginCode
public function process(ProcessingContext $context, array &$field_data);