You are here

private function CkEditorContext::getDefault in Lightning Core 8.5

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

Returns the first available CKEditor instance ID.

Return value

string|false The first CKEditor instance ID, or FALSE if there are no instances.

1 call to CkEditorContext::getDefault()
CkEditorContext::assertEditor in tests/contexts/CkEditorContext.behat.inc
Asserts that a CKEditor instance exists and is fully loaded.

File

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

Class

CkEditorContext
Contains step definitions for working with CKEditor instances.

Namespace

Acquia\LightningExtension\Context

Code

private function getDefault() {
  $keys = $this
    ->getKeys();
  return reset($keys);
}