interface ConfigPagesLoaderServiceInterface in Config Pages 8.2
Same name and namespace in other branches
- 8.3 src/ConfigPagesLoaderServiceInterface.php \Drupal\config_pages\ConfigPagesLoaderServiceInterface
Class ConfigPagesLoaderService.
@package Drupal\config_pages
Hierarchy
- interface \Drupal\config_pages\ConfigPagesLoaderServiceInterface
Expanded class hierarchy of ConfigPagesLoaderServiceInterface
All classes that implement ConfigPagesLoaderServiceInterface
1 file declares its use of ConfigPagesLoaderServiceInterface
- ConfigPagesValueAccess.php in src/
Plugin/ Condition/ ConfigPagesValueAccess.php
File
- src/
ConfigPagesLoaderServiceInterface.php, line 10
Namespace
Drupal\config_pagesView source
interface ConfigPagesLoaderServiceInterface {
/**
* Loads config page entity by type and context.
*
* @param string $type
* Config page type to load.
* @param string $context
* Context which should be used to load entity.
*
* @return null|\Drupal\config_pages\Entity\ConfigPages
* Loaded CP object.
*/
public function load($type, $context = NULL);
/**
* Get value from CP.
*
* @param string|ConfigPages $type
* Config page object or type name.
* @param string $field_name
* Field name.
* @param array|int $deltas
* Field value deltas that you like to get.
* @param string $key
* Field "value" key.
*
* @return array|mixed|null
* Value (or array of values) from specified field in CP.
*/
public function getValue($type, $field_name, $deltas = [], $key = NULL);
/**
* Get render array of CP.
*
* @param string|ConfigPages $type
* Config page object or type name.
* @param string $field_name
* Field name you like to get.
* @param string $view_mode
* View mode name.
*
* @return array|null
* Render array of CP in specified view mode.
*/
public function getFieldView($type, $field_name, $view_mode = 'full');
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
ConfigPagesLoaderServiceInterface:: |
public | function | Get render array of CP. | 1 |
ConfigPagesLoaderServiceInterface:: |
public | function | Get value from CP. | 1 |
ConfigPagesLoaderServiceInterface:: |
public | function | Loads config page entity by type and context. | 1 |