protected function Paragraph::getFieldsToSkipFromChangedCheck in Paragraphs 8
Returns an array of field names to skip in ::isChanged.
Return value
array An array of field names.
1 call to Paragraph::getFieldsToSkipFromChangedCheck()
- Paragraph::isChanged in src/
Entity/ Paragraph.php - Returns a flag whether a current revision has been changed.
File
- src/
Entity/ Paragraph.php, line 583
Class
- Paragraph
- Defines the Paragraph entity.
Namespace
Drupal\paragraphs\EntityCode
protected function getFieldsToSkipFromChangedCheck() {
// A list of revision fields which should be skipped from the comparision.
$fields = [
$this
->getEntityType()
->getKey('revision'),
];
return $fields;
}