interface YamlContentProcessInterface in YAML Content 8
An interface for all YAML Content process plugins to implement.
Hierarchy
- interface \Drupal\yaml_content\Plugin\YamlContentProcessInterface
Expanded class hierarchy of YamlContentProcessInterface
All classes that implement YamlContentProcessInterface
2 files declare their use of YamlContentProcessInterface
- File.php in src/
Plugin/ yaml_content/ process/ File.php - Reference.php in src/
Plugin/ yaml_content/ process/ Reference.php
File
- src/
Plugin/ YamlContentProcessInterface.php, line 8
Namespace
Drupal\yaml_content\PluginView source
interface YamlContentProcessInterface {
/**
* Processes field data.
*
* @param \Drupal\yaml_content\Plugin\ProcessingContext $context
* The processing context.
* @param array $field_data
* The field data.
*
* @return array|int
* The entity id.
*
* @throws \Drupal\Core\TypedData\Exception\MissingDataException
* Error for missing data.
*
* @see \Drupal\yaml_content\Plugin\YamlContentProcessManager::preprocessFieldData()
*/
public function process(ProcessingContext $context, array &$field_data);
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
YamlContentProcessInterface:: |
public | function | Processes field data. | 2 |