You are here

public function RenderedItemProperty::defaultConfiguration in Search API 8

Gets the default configuration for this property.

Return value

array An associative array with the default configuration.

Overrides ConfigurablePropertyBase::defaultConfiguration

File

src/Plugin/search_api/processor/Property/RenderedItemProperty.php, line 23

Class

RenderedItemProperty
Defines a "rendered item" property.

Namespace

Drupal\search_api\Plugin\search_api\processor\Property

Code

public function defaultConfiguration() {
  return [
    'roles' => [
      AccountInterface::ANONYMOUS_ROLE,
    ],
    'view_mode' => [],
  ];
}