protected function Paragraph::getMultiValueIndex in Search and Replace Scanner 8
Get multiple value index.
1 call to Paragraph::getMultiValueIndex()
- Paragraph::handleParentRelationship in src/
Plugin/ Scanner/ Paragraph.php - Helper function to handle entity reference relationships.
File
- src/
Plugin/ Scanner/ Paragraph.php, line 302
Class
- Paragraph
- Class Paragraph.
Namespace
Drupal\scanner\Plugin\ScannerCode
protected function getMultiValueIndex($values, $pid) {
foreach ($values as $key => $value) {
if ($value['target_id'] == $pid) {
return $key;
}
}
return -1;
}