You are here

public function LegalLanguageSettings::legalVersionsLatestGetData in Legal 8

Same name and namespace in other branches
  1. 2.0.x src/Form/LegalLanguageSettings.php \Drupal\legal\Form\LegalLanguageSettings::legalVersionsLatestGetData()

Get data from T&C object.

Parameters

object $data: T&C object.

Return value

array T&C data as an array.

1 call to LegalLanguageSettings::legalVersionsLatestGetData()
LegalLanguageSettings::legalVersionsLatestGet in src/Form/LegalLanguageSettings.php
Get latest version for each language.

File

src/Form/LegalLanguageSettings.php, line 144

Class

LegalLanguageSettings
Class LegalLanguageSettings.

Namespace

Drupal\legal\Form

Code

public function legalVersionsLatestGetData($data) {
  $row['revision'] = isset($data->revision) ? $data->revision : '';
  $row['language'] = isset($data->language) ? $data->language : '';
  $row['conditions'] = isset($data->conditions) ? $data->conditions : '';
  $row['date'] = isset($data->date) ? $data->date : '';
  $row['extras'] = isset($data->extras) ? $data->extras : '';
  $row['changes'] = isset($data->changes) ? $data->changes : '';
  return $row;
}