You are here

function config_pages_config in Config Pages 8.3

Same name and namespace in other branches
  1. 8 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.

Parameters

string $type: Config page type to load.

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

Return value

\Drupal\config_pages\Entity\ConfigPages Returns config page entity.

6 calls to config_pages_config()
ConfigPagesCommands::pagesGetFieldValue in src/Commands/ConfigPagesCommands.php
Get a value for the field of Config Pages
ConfigPagesCommands::pagesSetFieldValue in src/Commands/ConfigPagesCommands.php
Set a value for the field of Config Pages.
drush_config_pages_get_field_value in ./config_pages.drush.inc
Call back function drush_config_pages_get_field_value().
drush_config_pages_set_field_value in ./config_pages.drush.inc
Call back function drush_config_pages_set_field_value().
GetValueCommand::execute in src/Command/GetValueCommand.php

... See full list

File

./config_pages.module, line 49
Module hooks.

Code

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