Same name and namespace in other branches
  1. 8.x-1.x src/Plugin/Field/FieldFormatter/EntityReferenceAjaxFormatter.php \Drupal\entity_reference_ajax_formatter\Plugin\Field\FieldFormatter\EntityReferenceAjaxFormatter::defaultSettings() 1 comment

File

src/Plugin/Field/FieldFormatter/EntityReferenceAjaxFormatter.php, line 366

Class

EntityReferenceAjaxFormatter
Plugin implementation of the 'entity reference rendered entity' formatter.

Namespace

Drupal\entity_reference_ajax_formatter\Plugin\Field\FieldFormatter

Code

public static function defaultSettings() {
    return [
        'load_more' => FALSE,
        'max' => 0,
        'number' => 6,
        'sort' => 0,
    ] + parent::defaultSettings();
}