Commit dfc40413 authored by tame4tex's avatar tame4tex Committed by Jeya Sundharam
Browse files

Issue #3303441 by tame4tex: Move to a Plugin architecture

parent d016dfaa
Loading
Loading
Loading
Loading
+16 −0
Original line number Diff line number Diff line
<?php

namespace Drupal\views_migration\Annotation;

/**
 * Defines a Migrate Views Access plugin annotation object.
 *
 * Plugin Namespace: Plugin\migrate\views\access
 *
 * @ingroup views_migration
 *
 * @Annotation
 */
class MigrateViewsAccess extends MigrateViewsAnnotationBase {

}
+33 −0
Original line number Diff line number Diff line
<?php

namespace Drupal\views_migration\Annotation;

use Drupal\Component\Annotation\Plugin;

/**
 * Defines an abstract base class for all Migrate Views plugin annotations.
 */
abstract class MigrateViewsAnnotationBase extends Plugin {

  /**
   * The plugin ID.
   *
   * @var string
   */
  public $id;

  /**
   * The Drupal core version(s) this plugin applies to.
   *
   * @var int[]
   */
  public $core;

  /**
   * The Views Plugin IDs the plugin is responsible for.
   *
   * @var string[]
   */
  public $plugin_ids = [];

}
+16 −0
Original line number Diff line number Diff line
<?php

namespace Drupal\views_migration\Annotation;

/**
 * Defines a Migrate Views Area plugin annotation object.
 *
 * Plugin Namespace: Plugin\migrate\views\area
 *
 * @ingroup views_migration
 *
 * @Annotation
 */
class MigrateViewsArea extends MigrateViewsHandlerAnnotationBase {

}
+16 −0
Original line number Diff line number Diff line
<?php

namespace Drupal\views_migration\Annotation;

/**
 * Defines a Migrate Views Argument plugin annotation object.
 *
 * Plugin Namespace: Plugin\migrate\views\argument
 *
 * @ingroup views_migration
 *
 * @Annotation
 */
class MigrateViewsArgument extends MigrateViewsHandlerAnnotationBase {

}
+16 −0
Original line number Diff line number Diff line
<?php

namespace Drupal\views_migration\Annotation;

/**
 * Defines a Migrate Views Argument Default plugin annotation object.
 *
 * Plugin Namespace: Plugin\migrate\views\argument_default
 *
 * @ingroup views_migration
 *
 * @Annotation
 */
class MigrateViewsArgumentDefault extends MigrateViewsAnnotationBase {

}
Loading