public function ResourceFieldEntity::getColumn in RESTful 7.2
Return value
string
Overrides ResourceFieldEntityInterface::getColumn
File
- src/
Plugin/ resource/ Field/ ResourceFieldEntity.php, line 733 - Contains \Drupal\restful\Plugin\resource\Field\ResourceFieldEntity
Class
- ResourceFieldEntity
- Class ResourceFieldEntity.
Namespace
Drupal\restful\Plugin\resource\FieldCode
public function getColumn() {
if (isset($this->column)) {
return $this->column;
}
if ($this
->getProperty() && ($field = $this::fieldInfoField($this
->getProperty()))) {
if ($field['type'] == 'text_long') {
// Do not default to format.
$this
->setColumn('value');
}
else {
// Set the column name.
$this
->setColumn(key($field['columns']));
}
}
return $this->column;
}