Xpressengine\Editor\EditorHandler::getAll PHP Méthode

getAll() public méthode

Get registered editor ids
public getAll ( ) : array
Résultat array
    public function getAll()
    {
        return $this->register->get('editor');
    }

Usage Example

 public function testGetAll()
 {
     list($register, $configs, $container, $storage, $medias, $tags) = $this->getMocks();
     $instance = new EditorHandler($register, $configs, $container, $storage, $medias, $tags);
     $register->shouldReceive('get')->once()->with('editor')->andReturn(['editor/foo@bar' => 'class1', 'editor/baz@qux' => 'class2']);
     $all = $instance->getAll();
     $this->assertEquals(['editor/foo@bar' => 'class1', 'editor/baz@qux' => 'class2'], $all);
 }