RainLab\Pages\Classes\Page::fill PHP Method

fill() public method

Sets the object attributes.
public fill ( array $attributes )
$attributes array A list of attributes to set.
    public function fill(array $attributes)
    {
        parent::fill($attributes);
        /*
         * When the page is saved, copy setting properties to the view bag.
         * This is required for the back-end editors.
         */
        if (array_key_exists('settings', $attributes) && array_key_exists('viewBag', $attributes['settings'])) {
            $this->getViewBag()->setProperties($attributes['settings']['viewBag']);
            $this->fillViewBagArray();
        }
    }