NLComponent::get_metadata
Return a map of metadata properties about this component type. Every component class should define this method. Not all properties need to be defined for each component type. getMetadataCombined can be used to get metadata values, with properties inherited up the component hierarchy.
Keys that are understood are: - name: human language name to be display in UI when editing. - description: description of the component for display in UI when editing. - imageURL: path to image on server that can be used in UI when editing. The image should be square. It may be scaled to different sizes. - display defines how the component is rendered: "inline" component is generated inline with a span. "block" component is generated as block with a div. - properties a map of properties that are understood by this type of component, and the data type, of the following form: array( "myproperty" => array( "type" => "Text", "description" => "This is my property" ) )
Signature
public function get_metadata()
Returns
- array