class ParagraphsItemRevision

Paragraphs Item Revision source plugin.

Available configuration keys:

  • bundle: (optional) If supplied, this will only return paragraphs of that particular type.

Plugin annotation


@MigrateSource(
  id = "d7_paragraphs_item_revision",
  source_module = "paragraphs",
)

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 ParagraphsItemRevision

File

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

Namespace

Drupal\paragraphs\Plugin\migrate\source\d7
View source
class ParagraphsItemRevision extends ParagraphsItem {

  /**
   * {@inheritdoc}
   */
  const JOIN = "p.item_id=pr.item_id AND p.revision_id <> pr.revision_id";

  /**
   * {@inheritdoc}
   */
  const PARENT_FIELD_TABLE_PREFIX = 'field_revision_';

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

}

Members

Namesort descending Modifiers Type Description Overrides
FieldableEntity::getConfiguration public function
FieldableEntity::setConfiguration public function
FieldableEntity::__construct public function
ParagraphsItem::defaultConfiguration public function Overrides FieldableEntity::defaultConfiguration
ParagraphsItem::fields public function
ParagraphsItem::prepareRow public function
ParagraphsItem::query public function
ParagraphsItemRevision::getIds public function Overrides ParagraphsItem::getIds
ParagraphsItemRevision::JOIN constant Join string for getting current revisions. Overrides ParagraphsItem::JOIN
ParagraphsItemRevision::PARENT_FIELD_TABLE_PREFIX constant The prefix of the field table that contains the entity properties. Overrides ParagraphsItem::PARENT_FIELD_TABLE_PREFIX