You are here

function rrssb_button_set_names in Ridiculously Responsive Social Sharing Buttons 8.2

Return the names (labels) of all button sets.

3 calls to rrssb_button_set_names()
RRSSBBlock::blockForm in src/Plugin/Block/RRSSBBlock.php
RRSSBField::buildOptionsForm in src/Plugin/views/field/RRSSBField.php
Default options form that provides the label widget that all fields should have.
rrssb_form_node_type_form_alter in ./rrssb.module
Implements hook_form_FORM_ID_alter().

File

./rrssb.module, line 455

Code

function rrssb_button_set_names() {
  $names = [
    '' => t('- None -'),
  ];
  foreach (rrssb_button_sets() as $buttonSet => $config) {
    $names[$buttonSet] = $config
      ->label();
  }
  return $names;
}