public function MachineName::getValueOptions in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/views/src/Plugin/views/field/MachineName.php \Drupal\views\Plugin\views\field\MachineName::getValueOptions()
1 call to MachineName::getValueOptions()
- MachineName::preRender in core/
modules/ views/ src/ Plugin/ views/ field/ MachineName.php - Runs before any fields are rendered.
File
- core/
modules/ views/ src/ Plugin/ views/ field/ MachineName.php, line 30 - Contains \Drupal\views\Plugin\views\field\MachineName.
Class
- MachineName
- Field handler which allows to show machine name content as human name.
Namespace
Drupal\views\Plugin\views\fieldCode
public function getValueOptions() {
if (isset($this->valueOptions)) {
return;
}
if (isset($this->definition['options callback']) && is_callable($this->definition['options callback'])) {
if (isset($this->definition['options arguments']) && is_array($this->definition['options arguments'])) {
$this->valueOptions = call_user_func_array($this->definition['options callback'], $this->definition['options arguments']);
}
else {
$this->valueOptions = call_user_func($this->definition['options callback']);
}
}
else {
$this->valueOptions = array();
}
}