You are here

function config_pages_config in Config Pages 8.2

Same name and namespace in other branches
  1. 8.3 config_pages.module \config_pages_config()
  2. 8 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|null Returns config page entity.

5 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.
config_pages_tokens in ./config_pages.tokens.inc
Implements hook_tokens().
GetValueCommand::execute in src/Command/GetValueCommand.php
SetValueCommand::execute in src/Command/SetValueCommand.php

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;
}