Class PostField
Post field.
Returns a single Post object or array of Post objects.
-
Tev\Field\Model\AbstractField
implements
Tev\Contracts\WordpressWrapperInterface
-
Tev\Field\Model\PostField
Methods summary
public
|
#
__construct( array $base, Tev\Post\Factory $postFactory )
Constructor.
Parameters
- $base
- Base field data
- $postFactory
- Post factory
Overrides
|
public
Tev\Post\Model\Post |Tev\Post\Model\Post[] |null
|
#
getValue( )
Get a single post object or array of post objects.
Get a single post object or array of post objects.
If no posts are configured, returned will result will be an empty array
if this is a mutli-select, or null if not.
Returns
|
public
string
|
#
__toString( )
Get a string representation of this field.
Get a string representation of this field.
Post title or titles, comma-space separated.
Returns
string
Overrides
|