$content([$lang])->toArray()

Returns the content object as array

  • $lang (string)
    Optional, language code in multi-lang installation
  • return (array)

Example

<?php a::show($page->content()->toArray()) ?>

//return the content array of a particular language in a multi-lang installation
<?php a::show($page->content('fr')->toArray()) ?>