Skip to content

this accessor

Polmonite edited this page Sep 21, 2019 · 1 revision

ThisAccessor

The this accessor calls a method of the underlying Malini\Post; it is possible to add more methods to an instance of the Malini\Post using the extend method.

Syntax:

@this:{method_name}

  • {method_name}: name of the method to call.

The Malini\Post does not expose a lot of useful methods to retrieve data, but it is possible to dinamically add methods to an instance using the extend method. It is particularly useful when creating custom accessors.

Examples:

Other

Extend Malini

  • Create your own Accessor
  • Create your own Decorator
  • Available Extensions
    • Malini\Aeria
    • Malini\YOAST
    • Malini\ACF
Clone this wiki locally