You are here

public function NodeListField::getDefault in Fasttoggle 8.2

File

src/Plugin/Setting/NodeListField.php, line 104
Fasttoggle Node Sticky

Class

NodeListField
Abstract interface for settings. Plugin strings are used for quick filtering without the need to instantiate the class.

Namespace

Drupal\fasttoggle\Plugin\Setting

Code

public function getDefault() {
  $options = $this
    ->getValueList();
  return array_shift(array_values($options));
}