cerebrate/templates/element/genericElements/SingleViews/Fields/keyField.php

6 lines
230 B
PHP

<?php
$value = Cake\Utility\Hash::extract($data, $field['path']);
$value = empty($value[0]) ? '' : $value[0];
echo $this->element('/genericElements/key', ['value' => $value, 'description' => $description ?? null]);
?>