defineProperties() public method

public defineProperties ( )
Esempio n. 1
0
 /**
  * Override of original method
  * - add new setting for the post page id
  *
  * @return array
  */
 public function defineProperties()
 {
     $parentProps = parent::defineProperties();
     $properties = array_merge($parentProps, ['postPage' => ['title' => 'rainlab.blog::lang.settings.posts_post', 'description' => 'rainlab.blog::lang.settings.posts_post_description', 'type' => 'dropdown', 'default' => 'blog/post', 'group' => 'Links']]);
     return is_array($properties) ? $properties : $parentProps;
 }