protected function Paragraph::getFieldsToSkipFromChangedCheck

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 paragraphs/src/Entity/Paragraph.php
Returns a flag whether a current revision has been changed.

File

paragraphs/src/Entity/Paragraph.php, line 588

Class

Paragraph
Defines the Paragraph entity.

Namespace

Drupal\paragraphs\Entity

Code

protected function getFieldsToSkipFromChangedCheck() {

  // A list of revision fields which should be skipped from the comparision.
  $fields = [
    $this
      ->getEntityType()
      ->getKey('revision'),
  ];
  return $fields;
}