Global navigation

   Documentation Center
   eZ Studio & eZ Platform
     User Manual
     Technical Manual
   eZ Publish 4.x / legacy

eZ Publish (5.x)

eZ Publish 5.x | For eZ Platform & eZ Studio topics see Technical manual and User manual, for eZ Publish 4.x and Legacy topics see eZ Publish legacy

Versions Compared


  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: fixed constructor example


The Keyword\Value constructor will initialize a new Value object with the value provided.

It expects a list of keywords, either as comma separated in a string or as an array of strings.

Code Block
titleConstructor example
use eZ\Publish\Core\FieldType\Keyword\Value;
// Instantiates a Keyword Value object with an array of keywords
$keywordValue = new Keyword\Value( array( "php5", "css3", "html5", "solr", "memcached" ) );
// Instantiates a Value object with a list of keywords in a string
// This is equivalent to the example above
$keywordValue = new Value( "php5,css3,html5,solr,memcached" );