You are here

function config_pages_config in Config Pages 8

Same name and namespace in other branches
  1. 8.3 config_pages.module \config_pages_config()
  2. 8.2 config_pages.module \config_pages_config()
  3. 7 config_pages.inc \config_pages_config()

Helper function. Returns config page entity.

@retun \Drupal\config_pages\Entity\ConfigPages.

Parameters

string $type: Config page type to load.

string $context: Context which should be used to load entity,

File

./config_pages.module, line 45
Module hooks.

Code

function config_pages_config($type, $context = NULL) {
  $config_page = ConfigPages::config($type, $context);
  return $config_page;
}