You are here

private function CkEditorContext::getKeys in Lightning Core 8.5

Same name and namespace in other branches
  1. 8 tests/contexts/CkEditorContext.behat.inc \Acquia\LightningExtension\Context\CkEditorContext::getKeys()
  2. 8.2 tests/contexts/CkEditorContext.behat.inc \Acquia\LightningExtension\Context\CkEditorContext::getKeys()
  3. 8.3 tests/contexts/CkEditorContext.behat.inc \Acquia\LightningExtension\Context\CkEditorContext::getKeys()
  4. 8.4 tests/contexts/CkEditorContext.behat.inc \Acquia\LightningExtension\Context\CkEditorContext::getKeys()

Returns all CKEditor instance IDs.

Return value

string[] The CKEditor instance IDs.

1 call to CkEditorContext::getKeys()
CkEditorContext::getDefault in tests/contexts/CkEditorContext.behat.inc
Returns the first available CKEditor instance ID.

File

tests/contexts/CkEditorContext.behat.inc, line 170

Class

CkEditorContext
Contains step definitions for working with CKEditor instances.

Namespace

Acquia\LightningExtension\Context

Code

private function getKeys() {
  $keys = $this
    ->getSession()
    ->evaluateScript('Object.keys(CKEDITOR.instances).join(",")');
  return explode(',', $keys);
}