src/controllers/DefaultController.php
protected function defineElement($element, $name = null, $description = null, array $values = [], array $options = [], array $params = [])
    {
        return [
            'name' => $name ?: $element,
            'description' => $description,
            'element' => $element,
            'values' => $values,
            'params' => $params,
        ];
    }
protected function defineElement($element, $name = null, $description = null, array $values = [], array $options = [], array $params = [])
    {
        return [
            'name' => $name ?: $element,
            'description' => $description,
            'element' => $element,
            'values' => $values,
            'params' => $params,
        ];
    }
protected function defineElement ( $ element , $ name = null , $ description = null , array $ values = [ ] , array $ options = [ ] , array $ params = [ ] ) { return [ 'name' => $ name ? : $ element , 'description' => $ description , 'element' => $ element , 'values' => $ values , 'params' => $ params , ] ; }
Generate the array for a given element.

@return array
Generate the array for a given element .