dashlets = $dashlets; return $this; } /** * Return this pane's dashlets * * @param bool $ordered Whether to order the dashlets first * * @return array */ public function getDashlets($ordered = true) { if ($this->dashlets === null) { return array(); } if ($ordered) { ksort($this->dashlets); } return $this->dashlets; } /** * {@inheritdoc} */ public function init() { $this->setUrl(Url::fromPath('dashboard', array('pane' => $this->getName()))); } /** * {@inheritdoc} */ public function merge(NavigationItem $item) { parent::merge($item); $this->setDashlets(array_merge( $this->getDashlets(false), $item->getDashlets(false) )); } }