replication-8.x-1.x-dev/src/Entity/ReplicationSettings.php

src/Entity/ReplicationSettings.php
<?php

namespace Drupal\replication\Entity;

use Drupal\Core\Config\Entity\ConfigEntityBase;
use Drupal\replication\Entity\ReplicationSettingsInterface;

/**
 * Defines the replication settings entity.
 *
 * The replication settings are attached to a Workspace to define how that
 * Workspace should be replicated.
 *
 * @ConfigEntityType(
 *   id = "replication_settings",
 *   label = @Translation("Replication settings"),
 *   config_prefix = "replication_settings",
 *   entity_keys = {
 *     "id" = "id",
 *     "label" = "label"
 *   }
 * )
 */
class ReplicationSettings extends ConfigEntityBase implements ReplicationSettingsInterface {

  /**
   * An identifier for these replication settings.
   *
   * @var string
   */
  protected $id;

  /**
   * The human readable name for these replication settings.
   *
   * @var string
   */
  protected $label;

  /**
   * The plugin ID of a replication filter.
   *
   * @var string
   */
  protected $filter_id;

  /**
   * The replication filter parameters.
   *
   * @var array
   */
  protected $parameters;

  /**
   * {@inheritdoc}
   */
  public function getFilterId() {
    return $this->filter_id;
  }

  /**
   * {@inheritdoc}
   */
  public function getParameters() {
    return $this->parameters;
  }
}

Главная | Обратная связь

drupal hosting | друпал хостинг | it patrol .inc