src/Utility/Panel.php
public function getFieldValues(array $data) : array
    {
        $result = [];
        foreach ($this->getFields() as $field) {
            $result[$field] = array_key_exists($field, $data) ? $data[$field] : null;
        }

        return $result;
    }
public function getFieldValues(array $data) : array
    {
        $result = [];
        foreach ($this->getFields() as $field) {
            $result[$field] = array_key_exists($field, $data) ? $data[$field] : null;
        }

        return $result;
    }
public function getFieldValues ( array $ data ) : array { $ result = [ ] ; foreach ( $ this -> getFields ( ) as $ field ) { $ result [ $ field ] = array_key_exists ( $ field , $ data ) ? $ data [ $ field ] : null ; } return $ result ; }
Returns field values from the given entity.

@param mixed[] $data to get the values for placeholders
@return mixed[] Associative array, Keys: placeholders Values: values
Returns field values from the given entity .