You are here

private function FontDisplayForm::getPresetSelectors in @font-your-face 8.3

Get a list of preset selectors.

Return value

array List of key-value selectors for selecting css selector presets.

2 calls to FontDisplayForm::getPresetSelectors()
FontDisplayForm::form in src/Form/FontDisplayForm.php
Gets the actual form array to be built.
FontDisplayForm::getDefaultSelectorOption in src/Form/FontDisplayForm.php
Return string that maps to selector.

File

src/Form/FontDisplayForm.php, line 194

Class

FontDisplayForm
Form to display fonts.

Namespace

Drupal\fontyourface\Form

Code

private function getPresetSelectors() {
  return [
    '' => '-- Select --',
    '.fontyourface h1, .fontyourface h2, .fontyourface h3, .fontyourface h4, .fontyourface h5, .fontyourface h6' => 'All Headers (h1, h2, h3, h4, h5, h6)',
    '.fontyourface h1' => 'h1',
    '.fontyourface h2' => 'h2',
    '.fontyourface h3' => 'h3',
    '.fontyourface p, .fontyourface div' => 'standard text (p, div)',
    '.fontyourface' => 'everything',
    'other' => 'other',
  ];
}