setTableNames example

/** * The source table containing the profile values. * * @var string */
  protected $valueTable;

  /** * {@inheritdoc} */
  public function query() {
    $this->setTableNames();
    return $this->select($this->fieldTable, 'pf')->fields('pf');
  }

  /** * {@inheritdoc} */
  public function prepareRow(Row $row) {
    if ($row->getSourceProperty('type') == 'selection') {
      // Get the current options.       $current_options = preg_split("/[\r\n]+/", $row->getSourceProperty('options'));
      // Select the list values from the profile_values table to ensure we get
Home | Imprint | This part of the site doesn't use cookies.