Documentation · ViewHelper reference

XSD schema file | vhs master

Iterator / KeysViewHelper

Gets keys from an iterator. /

  • Tag usage example

    <v:iterator.keys subject="[mixed]" as="NULL">
    	<!-- tag content - may be ignored! -->
    </v:iterator.keys>
  • Inline usage example

    {v:iterator.keys(subject: [mixed], as: 'NULL')}

Arguments

Argument Description Type
as

Template variable name to assign; if not specified the ViewHelper returns the variable instead.

string
subject

Input to work on - Array/Traversable/...

mixed
Required attribute

Revision history

commit ebabd3bf3f3b1318227073e6227f75397025188e
Author: Stefan Neufeind <*****@speedpartner.de>
Date:   Sun Jun 15 12:05:20 2014 +0200

    [FEATURE] Add iterator.keys ViewHelper
    
    This mimics the iterator.values VH.

commit 1da952fbd6b36e213dc61c7e784cd87cf8e2841a
Author: Claus Due <*****@namelesscoder.net>
Date:   Tue Oct 14 19:43:50 2014 +0200

    [DOC] Copyright block comment adjustment

commit 8bb2fc5ee124ba19b0a0ab8e061c9a153fc4651f
Author: Xaver Maierhofer <*****@xwissen.info>
Date:   Sun Jan 18 17:56:13 2015 +0100

    [TASK] Reference Copyright to license.md file