/** * Get activated tools for the editor * * @return AbstractTool[] */ public function getTools() { if ($this->tools === null) { $this->tools = []; foreach ($this->getActivateToolIds() as $toolId) { if ($tool = $this->editors->getTool($toolId, $this->instanceId)) { $this->tools[] = $tool; } } } return $this->tools; }