public function apply() { $this->_page->setAttributes($this->getAttributes(['pattern', 'title', 'keywords', 'description']), false); $this->_page->ogTags = Json::encode($this->ogTags); $result = $this->_page->save(false); Page::getPatterns(true); return $result; }