Set the toolbars to render

@param array $toolbars
@return $this
482508
public function setToolbars(array $toolbars)
    {
        $this->_toolbars = array();
        foreach($toolbars as $toolbar) {
            $this->setToolbar($toolbar);
        }

        return $this;
    }
219482
public function withStyles(array $styles)
    {
        foreach ($styles as $name => $args) {
            $this->formatter()->setStyle($name, new OutputFormatterStyle(...$args));
        }

        return $this;
    }
774812
public function setAttributes(array $attrs) {

		foreach($attrs as $k => $v) {
			$this->setAttribute($k, $v);
		}

		return $this;

	}
542135
public function setMethods($methods)
    {
        $this->methods = array_map('strtoupper', (array) $methods);
        $this->compiled = null;

        return $this;
    }
1048995
public function setKeyframes($keyframes)
    {
        $this->keyframes = [];
        if (!is_array($keyframes)) {
            $keyframes = [$keyframes];
        }
        foreach ($keyframes as $keyframe) {
            $this->addKeyframe($keyframe);
        }

        return $this;
    }
732902
public function setClients(array $clients = null)
    {
        ValidationUtility::ensureNullOrArrayOfType(
            '$clients', $clients, __NAMESPACE__ . '\Client');

        $this->clients = $clients;

        return $this;
    }
611987
public function setListActions(array $actions)
    {
        foreach ($actions as $key => $action) {
            $this->addListAction($key, $action);
        }

        return $this;
    }
1322303
public function setPages(array $pages)
    {
        $this->pages = array();
        foreach ($pages as $page) {
            $this->addPage($page);
        }
        return $this;
    }
1352513
public function setAttributes(array $attributes)
    {
        $this->attributes = [];
        foreach ($attributes as $attribute => $value) {
            $this->addAttribute($attribute, $value);
        }

        return $this;
    }
1307624
public function setExtensionHandlers(array $handlers)
    {
        $assoc = [];
        foreach ($handlers as $handler) {
            $assoc[$handler->getHandledKeyword()] = $handler;
        }
        uasort($assoc, function ($a, $b) {
            return $a->getPriorityOver($b->getHandledKeyword());
        });
        $this->handlers = $assoc;
        $this->setHandlerParams();

        return $this;
    }
530408
public function stack($handlers)
    {
        if (is_array($handlers)) {
            $this->handlers = array_merge($this->handlers, $handlers);
        } else {
            $this->handlers[] = $handlers;
        }
        return $this;
    }
66668
public function setSettings(array $settings)
    {
        $this->settings = array_merge($this->settings, $settings);
        
        if (isset($settings['templates_path'])) {
            $this->view->templatesPath = $this->settings['templates_path'];
        }
        
        return $this;
    }
342155
public function setCheckboxes(array $checkboxes)
    {
        foreach ($checkboxes as $name => $label) {
            $this->checkboxes[$label] = new CmsCheckbox($name);
        }

        return $this;
    }
379292
public function setPages($pages)
    {
        foreach ($pages as $key => $dtoData) {
            $this->pages[$key] = new RunePageDto($dtoData);
        }
    
        return $this;
    }
749999
public function setParsers($parsers)
    {
        $this->parsers = [];
        foreach ($parsers as $parser) {
            if ($parser instanceof ValueParserInterface) {
                $this->parsers[$parser->getName()] = $parser;
            }
        }

        return $this;
    }
470061
public function sidebars($sidebars = [])
    {
        if (empty($sidebars)) {
            return $this;
        }

        if (function_exists('register_sidebar')) {
            foreach ($sidebars as $sidebar) {
                register_sidebar($sidebar);
            }
        }

        return $this;
    }
700381
public function setAll(array $values)
    {
        if ($this->getResource()) {
            if ($this->useLocalResource) {
                $this->localResource = $values;
            } else {
                $GLOBALS[$this->getResource()] = $values;
            }
        }
        return $this;
    }