getTool() 공개 메소드

Get a tool
public getTool ( string $toolId, string $instanceId ) : AbstractTool | null
$toolId string tool id
$instanceId string instance id
리턴 AbstractTool | null
예제 #1
0
 /**
  * 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;
 }