class FieldCollectionItemRevision

Field Collection Item Revision source plugin.

Available configuration keys:

  • field_name: (optional) If supplied, this will only return field collections of that particular type.

Plugin annotation


@MigrateSource(
  id = "d7_field_collection_item_revision",
  source_module = "field_collection",
)

Hierarchy

  • class \Drupal\paragraphs\Plugin\migrate\source\d7\FieldableEntity extends \Drupal\migrate_drupal\Plugin\migrate\source\d7\FieldableEntity implements \Drupal\Component\Plugin\ConfigurableInterface

Expanded class hierarchy of FieldCollectionItemRevision

File

paragraphs/src/Plugin/migrate/source/d7/FieldCollectionItemRevision.php, line 17

Namespace

Drupal\paragraphs\Plugin\migrate\source\d7
View source
class FieldCollectionItemRevision extends FieldCollectionItem {

  /**
   * Join string for getting all except the current revisions.
   */
  const JOIN = "f.item_id = fr.item_id AND f.revision_id <> fr.revision_id";

  /**
   * {@inheritdoc}
   */
  public function getIds() {
    return [
      'revision_id' => [
        'type' => 'integer',
        'alias' => 'fr',
      ],
    ];
  }

}

Members