/** * Creates an instance of the object and associates it with a CMS theme. * @param \Cms\Classes\Theme $theme Specifies the theme the object belongs to. */ public function __construct(Theme $theme = null) { parent::__construct($theme); $this->settingsValidationMessages = ['url.regex' => Lang::get('cms::lang.page.invalid_url')]; }
/** * Creates an instance of the object and associates it with a CMS theme. * @param array $attributes */ public function __construct(array $attributes = []) { parent::__construct($attributes); $this->customMessages = ['url.regex' => Lang::get('cms::lang.page.invalid_url')]; }