You are here

public function HttpStatusCodeDisplayVariant::defaultConfiguration in Page Manager 8

Same name and namespace in other branches
  1. 8.4 src/Plugin/DisplayVariant/HttpStatusCodeDisplayVariant.php \Drupal\page_manager\Plugin\DisplayVariant\HttpStatusCodeDisplayVariant::defaultConfiguration()

Gets default configuration for this plugin.

Return value

array An associative array with the default configuration.

Overrides VariantBase::defaultConfiguration

File

src/Plugin/DisplayVariant/HttpStatusCodeDisplayVariant.php, line 60
Contains \Drupal\page_manager\Plugin\DisplayVariant\HttpStatusCodeDisplayVariant.

Class

HttpStatusCodeDisplayVariant
Provides a variant that returns a response with an HTTP status code.

Namespace

Drupal\page_manager\Plugin\DisplayVariant

Code

public function defaultConfiguration() {
  $configuration = parent::defaultConfiguration();
  $configuration['status_code'] = '404';
  return $configuration;
}