public function getTokenName(array $tokenData = null)
    {
        $data[] = $tokenData['grs_first_name'];
        $data[] = $tokenData['grs_surname_prefix'];
        $data[] = $tokenData['grs_last_name'];

        $data = array_filter(array_map('trim', $data)); // Remove empties

        return implode(' ', $data);
    }
public function getTokenName(array $tokenData = null)
    {
        $data[] = $tokenData['grs_first_name'];
        $data[] = $tokenData['grs_surname_prefix'];
        $data[] = $tokenData['grs_last_name'];

        $data = array_filter(array_map('trim', $data)); // Remove empties

        return implode(' ', $data);
    }
public function getTokenName ( array $ tokenData = null ) { $ data [ ] = $ tokenData [ 'grs_first_name' ] ; $ data [ ] = $ tokenData [ 'grs_surname_prefix' ] ; $ data [ ] = $ tokenData [ 'grs_last_name' ] ; $ data = array_filter ( array_map ( 'trim' , $ data ) ) ; // Remove empties return implode ( ' ' , $ data ) ; }
Returns the name of the user mentioned in this token
in human-readable format

@param  array $tokenData
@return string
Returns the name of the user mentioned in this token in human - readable format